select * from table1
union all
select * from table2

解决方案 »

  1.   

    select 
    id1 a,id2 b,item1 c
    from table1
    union all
    select 
    id1 a,id2 b,item2 c
    from table2
      

  2.   

    select table1.id1 as a,  table1.id2 as b, table1.item1 as c
    union all
    select * from table2
      

  3.   

    select id1 a,id2 b,item1 c from table1
    union all
    select * from table2
      

  4.   

    select table1.id1 as a,  table1.id2 as b, table1.item1 as c from table1
    union all
    select * from table2
      

  5.   

    我想压缩table1, table2 的id1,id2的重复值再连接先union id1, union id2,
    在left jion table1 on..
      left jion table2 on..  
    如何写
      谢谢!!!