怎么在Oracle9中合并多列 select a,b,c,null,null from table1unionselect null,null,null d,e,from table2 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 9i?select a,b,c,d,e from (select rownum id,a,b,c from table1) t1full outer join (select rownum id,d,e from table2) t2 on t1.id=t2.id; select a.a,a.b,a.c,b.d,b.e from table1 a,table2 b where 条件 select a.a,a.b,a.c,b.d,b.e from table1 a left join table2 b on 条件 bzszp(SongZip) ( ) 说的对select a,b,c,null d,null e from table1unionselect null a,null b,null c, d,e from table2这个? select * from (select a,b,c from table1 full outer joinselect d,e,from table2) t要用到全外链接 select a.a,a.b,a.c,b.d,b.e from table1 a,table2 b where a.id=b.id select a.a||a.b||a.c||b.d||b.e from table1 a,table2 b where a.id=b.id 楼主如果是要把毫无关系的2个表数据放到一起,这样的话 liangwqtps(几百K) 的方法是可以的,如果是通过映射关系对应,那么就应该使用全外连接。 select a||b||c||d||e from tablename select a.a,a.b,a.c,b.d,b.e from table1 a,table2 b where 条件 Java的一个for循环中执行两句sql时的性能问题 关于oracle中能连接的最大用户数的问题 请个问题,客户端怎么连接Oracle数据库 一个复杂的SQL拼接问题, 请教 solaris上使用G++ OTLV4连接OCCI时候出现问题 关于group by 与 decode??? 求教,请大虾们帮帮忙!!!!!!!!! oracle的安装问题? oracle基础问题 数据库 Oracle pl/sql 登录不了 oracle内存泄漏? 触发器触发的时候,调用外部一个java程序,有经验的GGJJ支个招?(在线等待!)
(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;
union
select null a,null b,null c, d,e from table2
这个?
full outer join
select d,e,from table2
) t要用到全外链接
楼主如果是要把毫无关系的2个表数据放到一起,这样的话 liangwqtps(几百K) 的方法是可以的,
如果是通过映射关系对应,那么就应该使用全外连接。