insert tabN(f1,f2,f3....) 
select f1,f2,f3...... from tabA
union all
select f1,f2,f3...... from tabB
union all
select ......

解决方案 »

  1.   

    insert tabN(f1,f2,f3....) 
    select * from
    (select a.f1,a.f2,b.f2,b.f4... from table1 a,table2 b  where a.col=b.col)a
      

  2.   

    insert tabN(f1,f2,f3....) 
    select f1,f2,f3...... from tabA
    union all
    select f1,f2,f3...... from tabB
    union all
    select ......
      

  3.   

    insert tabN(f1,f2,f3....) 
    select * from
    (select a.f1,a.f2,b.f2,b.f4... from table1 a,table2 b  where a.col=b.col)a
      

  4.   

    不好意思,刚才搞错了,我是说用两个不同表的不同字段。两个源表没有重复字段
    insert tabN(f1,f2,f3) select a的列1,a的列2,a的列3 from 表a
    union all
    select b的列1,b的列2,b的列3 from 表b
      

  5.   

    还是用join???insert tabN(f1,f2,f3) select a.列1,b.列2,a.列2 from 表a a join  表b b on a.列1=b.列1