oracle左关联+号表示方式

时间:2024-01-08 13:34:26

1.emp表和dept表

oracle左关联+号表示方式

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

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

  查询出来结果:

   oracle左关联+号表示方式

3.解释:where条件后

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

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

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