SQL Server查询一个表的所有列名的SQL语句

select name from syscolumns where id=object_id('表名');

 

posted @ 2012-07-03 00:14  liqipeng  阅读(297)  评论(0编辑  收藏  举报