日期:2014-05-18  浏览次数:20708 次

Sql Server如何获取表中 标识的列
如题
就是如何返回表中类型是标识的列

------解决方案--------------------
SQL code
select * from syscolumns where COLUMNPROPERTY( id,name,'IsIdentity')=1 --and id=object_id('表名')