select nvl(a.id,b.id) id,a.content,b.content1 from a full outer join
on a.id=b.id
on a.id=b.id
解决方案 »
- oracle 10g web登陆EM的问题?
- orcale存储过程中的异常
- ORACLE 存储过程返回记录的问题?
- ORACLE随机记录抽取
- database configuration assistant not work?help help
- oracle 9i 求段sql
- 如何得到新插入行的ID值,谢谢!(附SQL Server代码)
- ASP如何连接oracle9i数据库
- 怎么样用脚本让一条语句执行自己想要的次数呀(在线等待)
- oracle用触发器为表的新增记录自动添加id是否合适
- 在哪里可以下载PRO*C安装程序啊?
- 急急急!!!!怎样在Orcale过程中执行一句SQL(SQL放在一个Varchar变量中)
select nvl(a.id,b.id) id,a.content,b.content1 from a full outer join b
on a.id=b.id
(select id,content,null content1,1 rm from a
union all
select id,null content,content1,2 rm form b)
group by id
on a.id=b.id
union all
select id,null,content1 from b where not exists (select * from a where id=b.id)这个至少比你现在的快。
from a full outer join
b on
a.id = b.id