Select Name,id from sysobjects where xtype = ’U’
其中xtype=’U’代表使用的table,若是使用xtype=’S’
则代表系统预设的table
在系统table中还有一个名叫syscolumns的table
他记录了栏位的资料
若是想要找出某一个table的栏位相关资料,可以用下面的SQL语法..
Select Name from syscolumns where id in (Select id from sysobjects where name= ’
Table_name’ and xtype=’U’)
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/10294527/viewspace-124499/ ,如需转载,请注明出处,否则将追究法律责任。