oracle左关联+号表示方式

1.emp表和dept表 

2.emp表中empno为8888的这条数据,没有部门编号,以emp表为主表,左关联查询部门信息sql语句如下:

  select * from emp e,dept d where e.deptno = d.deptno(+);

  查询出来结果:

   

3.解释:where条件后

    左关联属性 = 右关联属性(+);

    左关联属性(+) = 右关联属性;

    +号在哪边,哪边的表残。

猜你喜欢

转载自www.cnblogs.com/pecool/p/9595419.html