Chinaunix首页 | 论坛 | 博客
  • 博客访问: 92651908
  • 博文数量: 19283
  • 博客积分: 9968
  • 博客等级: 上将
  • 技术积分: 196062
  • 用 户 组: 普通用户
  • 注册时间: 2007-02-07 14:28
文章分类

全部博文(19283)

文章存档

2011年(1)

2009年(125)

2008年(19094)

2007年(63)

分类: Oracle

2008-04-30 21:26:18

ORACLE8i是不直接支持完全外连接的语法,也就是说不能在左右两个表上同时加上(+),下面是在ORACLE8i可以参考的完全外连接语法
select t1.id,t2.id from table1 t1,table t2 where t1.id=t2.id(+)
union
select t1.id,t2.id from table1 t1,table t2 where t1.id(+)=t2.id

 

原文:http://rukyo.blog.ccidnet.com/blog-htm-itemid-94381-do-showone-type-blog-uid-36407.html

阅读(350) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~