select a,b,c,null,null from table1
union
select null,null,null d,e,from table2

解决方案 »

  1.   

    9i?select a,b,c,d,e from 
    (select rownum id,a,b,c from table1) t1
    full outer join 
    (select rownum id,d,e from table2) t2 on t1.id=t2.id;
      

  2.   

    select a.a,a.b,a.c,b.d,b.e from table1 a,table2 b where 条件
      

  3.   

    select a.a,a.b,a.c,b.d,b.e from table1 a left join table2 b on 条件
      

  4.   

    bzszp(SongZip) ( ) 说的对select a,b,c,null d,null e from table1
    union
    select null a,null b,null c, d,e from table2
    这个?
      

  5.   

    select * from (select a,b,c from table1
     full outer join
    select d,e,from table2
    )  t要用到全外链接
      

  6.   

    select a.a,a.b,a.c,b.d,b.e from table1 a,table2 b where a.id=b.id
      

  7.   

    select a.a||a.b||a.c||b.d||b.e from table1 a,table2 b where a.id=b.id
      

  8.   


    楼主如果是要把毫无关系的2个表数据放到一起,这样的话 liangwqtps(几百K) 的方法是可以的,
    如果是通过映射关系对应,那么就应该使用全外连接。
      

  9.   

    select a||b||c||d||e from tablename
      

  10.   

    select a.a,a.b,a.c,b.d,b.e from table1 a,table2 b where 条件