1

What does the symbol (+) mean at the end of a WHERE statement? I have never seen it at the end of a statement and it is causing me much confusion. Does anyone have an idea?

Example: Where(table1.number = table2.number (+))

Jonathan Leffler
  • 730,956
  • 141
  • 904
  • 1,278

1 Answers1

3

It could be use to do joins, but its not recommended:

Afaik, the + notation is only present for backwards compatibility because Oracle debuted it before the ANSI standard for joins was put in place. It's specific to Oracle and you should avoid using it in new code when there's an equivalent standards-compliant version available.

Edit: It seems there are differences between the two, and the + notation has restrictions that the ANSI join syntax does not have. Oracle themselves recommend that you not use the + notation.

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

In Oracle, (+) denotes the "optional" table in the JOIN.

From here: Left Outer Join using + sign in Oracle 11g

Community
  • 1
  • 1
jsedano
  • 4,088
  • 2
  • 20
  • 31