oracle中的(+)表示外连接,总是放在从表(非主表)的一方

来源:互联网 发布:国产爆笑喜剧电影知乎 编辑:程序博客网 时间:2024/05/01 07:17

例如:   ----------------------------- 左外连接:
     selectA.a,B.a from A LEFT JOIN B ON A.b=B.b;
等价于
     selectA.a,B.a from A,B where A.b = B.b(+);

再举个例子,这次是--------------右外连接:
    selectA.a,B.a from A RIGHT JOIN B ON A.b=B.b;
等价于
   selectA.a,B.a from A,B where A.b (+)= B.b;

 

0 0
原创粉丝点击