现在位置:
首页 > SQL Server > 正文

SQL获取某一个表的所有字段
获取某一个表的所有字段
- select name from syscolumns where id=object_id('表名')
- select name from syscolumns where id in (select id from sysobjects where type = 'u' and name = '表名')
两种方式的效果相同
============ 欢迎各位老板打赏~ ===========

