RT

解决方案 »

  1.   

    select * into xx from xxx
      

  2.   


    insert into B
    select * from A
    两个表字段要一样。
      

  3.   

    insert tb select * from ta --tb已存在
    select * into tb from ta --tb不存在
      

  4.   


    select * into TB from TA  ---你的TB没建insert into TB
    select * from TA ---已建好和TA字段一样多的表。
      

  5.   

    1.select * into B from A -->表B不存在时
    2.insert B select * from A-->表B存在时
      

  6.   

    当表B存在且表B有标识列时,则先去标识列属性再插入.set identity_insert B on插入数据后再打开set identity_insert B off
      

  7.   

    insert tb select * from ta --tb已存在
    select * into tb from ta --tb不存在
    自己多试试,就知道了
    共同进步
      

  8.   

          select *
          into 新表
           from 原表
      

  9.   

    1.select * into B from A -->表B不存在时
    2.insert B select * from A-->表B存在时
    正解
      

  10.   

    平时用的
    select * from A jion inner b on a.id=b.id