SQLServer自增列判断

if columnproperty(object_id('table'),'col','IsIdentity')=1
     print '自增列'
else
    print '不是自增列'

原文地址:https://www.cnblogs.com/zhangpengshou/p/1210526.html