当前位置: 代码迷 >> Sql Server >> Sql Server怎么获取表中 标识的列
  详细解决方案

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

热度:265   发布时间:2016-04-27 19:25:48.0
Sql Server如何获取表中 标识的列
如题
就是如何返回表中类型是标识的列

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