关于结果集的合并 看一下ORACLE的外链接(+)在WHERE中使用 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 select a.code,a.feel,nvl(b.fee2,0) from a,b where a.code=b.code(+)union select a.code,nvl(a.feel,0),b.fee2 from a,b where a.code(+)=b.code问题有点奇怪. select code, sum(fee1),sum(fee2) from( select code , fee1, 0 as fee2 from a union all select code, 0 as fee1, fee2 from b) cgroup by code 谢谢, beckhambobo方法可行。 linux虚拟机 安装oracle11出现问题 数据库转换问题 create index 时说资源正在忙,指定 nowait 选项,怎么指定? 为什么监听器总是启动不了?和操作系统有关吗? 散分了,谁来帮小妹一下呢?在线等 archive/下的文件可以删除么?? 看看笑话,顺便散分 数据表排序字段,内容重复的不显示,如何书写SQL语句? 请教SQL Server中SQL语句在Oracle中的写法 ORACLE初学者,请问有什么好书介绍一下! 如何恢复数据库 在jbuild里如何连另一台计算机上的oracle数据库?
union
select a.code,nvl(a.feel,0),b.fee2 from a,b where a.code(+)=b.code问题有点奇怪.
( select code , fee1, 0 as fee2 from a
union all
select code, 0 as fee1, fee2 from b
) c
group by code