select * into  xxx from xxx where xxx

解决方案 »

  1.   

    insert XXXX select * from XXXX where 条件
      

  2.   

    那如果有NEWID()列的,要如何复制呢,
      

  3.   

    set indentity_insert table on
    insert into table (列1....)  --除id列外
      select 列1... from table where 条件1..
    set indentity_insert table off
      

  4.   

    davytao1018(爱的代价) 
    你的语句报错,提示
    'indentity_insert' 不是可以识别的 SET 语句。
    请问如何处理