标签:
SELECT COLUMN_NAME FROM INFORMATION_SCHEMA.columns WHERE TABLE_NAME=‘tablaname‘ AND COLUMNPROPERTY(OBJECT_ID(‘tablaname‘),COLUMN_NAME,‘IsIdentity‘)=1
SqlServer 获取标识列的方法
原文地址:http://www.cnblogs.com/xyz0835/p/4193320.html