LinkedIn

Wednesday, 3 December 2008

Getting all the column names in a table


SELECT COLUMN_NAME from information_schema.columns WHERE TABLE_NAME = 'table name'