Search found 1 match

by jpaw
Mon Feb 27, 2006 9:39 pm
Forum: Databases
Topic: Column names of certain fields
Replies: 2
Views: 334

Column names of certain fields

Is there an easy way to display the column name(s) from a mysql result? For example, if I have an SQL statement like SELECT id,name FROM `table` and assuming that I do not know the SQL statement beforehand, is there a way to find the column name and display it? I know SHOW FIELDS FROM will show all ...