如题
这多条记录是从另一个表中提取的。
递减字段是新表中存在的字段。

解决方案 »

  1.   

    select ID,identity(-1, -1) as id2 from table 提示-附近有语法错误。
      

  2.   

    create table ff(id int identity(-1,-1),bb int)insert into ff(20)
      

  3.   

    insert into ff values(20)
      

  4.   

    select ID,identity(-1, -1) as id2 from table 提示-附近有语法错误。
    -------------
    这样的:
    select ID,identity(int,-1, -1) as id2 from table
      

  5.   

    晕,上面写的不对
    要么再建表的时候create table tb(a int identity(-1,-1),b int)
    或者select ID,identity(int,-1, -1) as id2 into # from table
    select * from #
      

  6.   

    insert table2 (  select ID,identity(int,-1, -1) as id2 into # from table)
    出错。