zoukankan      html  css  js  c++  java
  • oracle外连接

    外连接

    *外链接是标准连接的扩展,它不仅会返回满足连接条件的所有记录,而且还会返回不满足条件的部分记录。

    *举例:

    *按部门统计员工的人数,要求显示:部门号,部门名称,人数

    *这样其实不符合要求

    外连接的语法

    *外链接是使用(+)操作来完成的。

    *右外连接

    select    table1.column,table2.column

    from      table1,table2

    where    table1.column(+) = table2.column;

    *左外连接接

     select    table1.column,table2.column

     from      table1,table2

     where    table1.column = table2.column(+);

    所以:

     喜欢的加关注。

  • 相关阅读:
    hrbust1279
    U盘快捷方式中毒处理办法
    计算几何
    poj1113
    凸包模版
    STL容器
    HDU2048
    HDU2047
    HDU2045
    python面试题总结
  • 原文地址:https://www.cnblogs.com/zhiyanwenlei/p/9638014.html
Copyright © 2011-2022 走看看