Retrieves the list of fields.
Use this function to retrieve the list of fields from the specified table.