Monday, 1 April 2013

Select table column name In SQL

SELECT  COLUMN_NAME FROM  INFORMATION_SCHEMA.COLUMNS WHERE  TABLE_NAME = 'TableNameGoesHere'ORDER   BY  ORDINAL_POSITION

No comments:

Post a Comment