1.emp表和dept表 

oracle左关联+号表示方式

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

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

  查询出来结果:

   oracle左关联+号表示方式

 

3.解释:where条件后

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

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

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

相关文章:

  • 2022-12-23
  • 2021-12-10
  • 2021-06-10
  • 2021-06-30
  • 2021-07-12
  • 2021-11-15
  • 2022-12-23
  • 2021-09-10
猜你喜欢
  • 2021-12-06
  • 2021-11-10
  • 2021-06-13
  • 2021-09-06
  • 2021-11-29
相关资源
相似解决方案