Possible Duplicate:
MySQL query to get column names?
I need to query the database to get the column/field names, not to be confused with data in the table. For example, if I have a table named wp_deals
that contains deal_id, deal_price, creation_date
then I would want to retrieve those field names from the query and nothing else.
so query should be like this
select column_names1,column_name2,column_name3 from table_name.
Be sure it should only gives those columns names that I want, not all.