Oracle syntax left joins three or more tables

后端 未结 2 481
后悔当初
后悔当初 2021-01-14 18:23

I am trying to wrap my head around the old oracle Left Join syntax. It\'s fine with two tables:

FROM A, B
WHERE
A.Col = B.Col (+)

(Lets cal

2条回答
  •  时光取名叫无心
    2021-01-14 19:09

    (+) style outer joins are inferior in terms of functionality compared to standard ANSI OUTER JOINS (as well as readability IMHO), which Oracle supported since 9i.

    What you want is effectively

    FROM C
    LEFT JOIN A ON C.C = A.C
    LEFT JOIN B ON A.C = B.C
    

    Does it make sense now? To be honest, I don't quite understand your questions because how the above syntax works is really obvious to me...

提交回复
热议问题