set identity_insert on
insert table1 select * from table2 where id > 1000
set identity_insert off

解决方案 »

  1.   

    set identity_insert table1 on
    insert table1 select * from table2 where id > 1000
    set identity_insert table1 off
      

  2.   

    如果要重新自动编号:
    insert table1(除自增列之外的其它列)
    select 同上
    from table2 where id > 1000
      

  3.   

    set identity_insert on
    insert table1 select * from table2 where id > 1000
    set identity_insert off