- 13
- 0
- 约1.3万字
- 约 33页
- 2016-12-02 发布于河南
- 举报
外联结
理解oracle中的外连接
术语定义
保留行表: 外连接条件中不包含+号的表
注意:不包含+号的表是指在外连接条件中。 如下例所示:
where d.deptno(+)=10 无保留行表
where d.deptno(+)=70 无保留行表
where d.deptno=e.deptno(+) d 是保留行表表
where d.deptno(+)=e.deptno e 是保留行表表
where d.deptno=10 不考虑,普通的连接条件
where d.deptno(+)=e.deptno and e.deptno(+)=10 无保留行表 d和e均包含了+号
左外连接中左边的表。
右外连接中右边的表。
全外连接中全部的表。
替换 NULL 的表:
左外连接中右边的表
右外连接中左边的表
全外连接中全部的表
在全外连接中,两张表既可以保留行,也可以替
原创力文档

文档评论(0)