insert into b select * from aselect * into b from a

解决方案 »

  1.   

    --1,如果表不存在
    select * into tb2 from tb1--2,如果表存在
    insert into tb2 select * from tb1
      

  2.   

    insert b select * from a
      

  3.   

    select * into b from a--b不存在的情况下.
      

  4.   

     
    --1)插入到一个新表中
    select * into tab1 from table2
    --2)更新到一个已经有数据的表中
    insert tab1 (对应字段)
    select * from tab2
      

  5.   

    insert into 表(字段) select 字段 from 表