Sql Server怎么获取表中 标识的列

Sql Server如何获取表中 标识的列如题就是如何返回表中类型是标识的列[解决办法]SQL codeselect * from sy

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

[解决办法]

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