What does (+) do in Oracle SQL?

前端 未结 4 1663
孤独总比滥情好
孤独总比滥情好 2020-12-06 20:24

I\'m using Oracle SQL Developer to query an Oracle DB (not sure which version it is) and I\'m going to use the SQL I make for a Crystal report. Many of the reports the prev

相关标签:
4条回答
  • 2020-12-06 20:27

    It is not recommended. See this previous answer

    Difference between Oracle's plus (+) notation and ansi JOIN notation?

    0 讨论(0)
  • 2020-12-06 20:30

    That represents a “right outer join” (right because the = is on the right side of the +).

    SELECT *
    FROM TableA, TableB
    WHERE TableA.PrimaryKey(+) = TableB.ForeignKey
    

    is equivalent to

    SELECT *
    FROM TableA
    RIGHT OUTER JOIN TableB
      ON (TableA.PrimaryKey = TableB.ForeignKey)
    
    0 讨论(0)
  • 2020-12-06 20:49

    (+) is used to perform right outer join in Oracle RIGHT OUTER JOIN is one of the JOIN operations that allow you to specify a JOIN clause For details http://docs.oracle.com/javadb/10.8.3.0/ref/rrefsqlj57522.html

    0 讨论(0)
  • 2020-12-06 20:54

    right outer join

    0 讨论(0)
提交回复
热议问题