SQLServer自增列判断

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

posted on 2008-05-30 10:43  一路前行  阅读(1529)  评论(0编辑  收藏  举报