select * from syscolumns where autoval is not null

解决方案 »

  1.   


    select '表名',  name from syscolumns where id=object_id('表名') and autoval is not null
      

  2.   

    select name as 增量列名 from syscolumns 
    where id=object_id('表名') and autoval is not null
      

  3.   

    select [name] from syscolumns 
    where id=object_id('表名') and autoval is not null
      

  4.   

    select [name] from syscolumns 
    where id=object_id('表名') and status & 0x80 = 0x80
      

  5.   

    status tinyint 用于描述列或参数属性的位图: 
    0x08 = 列允许空值。
    0x10 = 当添加 varchar 或 varbinary 列时,ANSI 填充生效。保留 varchar 列的尾随空格,保留 varbinary 列的尾随零。
    0x40 = 参数为 OUTPUT 参数。
    0x80 = 列为标识列。
      

  6.   

    autoval varbinary(255) 仅限内部使用。 所以一般还是不要用这个做判断的好.
      

  7.   

    TO;zjcxc(邹建)
    那还有其它的获取方法吗?