select a,b,c from t1
union all
select a,b,null from t2

解决方案 »

  1.   

    select a,b,c from t1
    union [all]
    select a,b,null from t2
      

  2.   

    select * into 新表 from (
    select a,b,c from t1
    union all
    select a,b,null from t2 ) tem
      

  3.   

    select a,b,c from t1
    union  select a,b,null from t2
      

  4.   

    select a,b,c from t1
    union 
    select a,b,null from t2
      

  5.   

    select t.a,t.b,t.c into NewTable From (
    select a,b,c from T1
    union ALL
    select a,b,null from T2) T其中
      ALL选项将消除 T1和 T2之间的联合中的重复行
      

  6.   

    sufon ()  ,你的意思是两个表合起来还是找字段a和字段b在两个表中的公共部分?如果是前者,就按照以上说法。