SQL 判断是否自增列

来源:互联网 发布:好玩的手机游戏知乎 编辑:程序博客网 时间:2024/05/02 14:27

if columnproperty(object_id('table'),'col','IsIdentity')=1

   print '自增列'

else

  print '不是自增列'

原创粉丝点击