select * from a
union 
select * from b

解决方案 »

  1.   

    insert into 表 
    select * from 表1
    union
    select * from 表2
    union 
    select * from 表3
      

  2.   

    insert into 表 
    select * from 表1
    union
    select * from 表2
    union 
    select * from 表3
    如果[表3]中有重复的数据好像就去不了了吧
      

  3.   

    insert into 表3 select * from 表 where code not in (select 主键 from 表3)
    insert into 表3 select * from 表2 where code not in (select 主键 from 表3)
      

  4.   

    打错了。不好意思。
    加入code是主键:
    insert into 表3 select * from 表 where code not in (select code from 表3)
    insert into 表3 select * from 表2 where code not in (select code from 表3)