码迷,mamicode.com
首页 > 数据库 > 详细

Oracle 12C -- native left outer join的加强

时间:2015-08-10 14:48:36      阅读:138      评论:0      收藏:0      [点我收藏+]

标签:

在11g中
SQL> select count(*)
  2    from emp a, dept b, bonus c
  3   where a.deptno(+) = b.deptno
  4     and a.ename(+) = c.ename;
where a.deptno(+) = b.deptno
                   *
ERROR at line 3:
ORA-01417: a table may be outer joined to at most one other table

SQL>

在12C中
SQL> select count(*)
  2    from emp a, dept b, bonus c
  3   where a.deptno(+) = b.deptno
  4     and a.ename(+) = c.ename;
  COUNT(*)
----------
         0
SQL> 

Oracle 12C -- native left outer join的加强

标签:

原文地址:http://www.cnblogs.com/abclife/p/4717962.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!