Oracle left outer join query

前端 未结 2 1102
梦谈多话
梦谈多话 2021-01-15 01:26
select a,last_note_user,c,d,iso_src
from X,Y,Z
left outer join W
ON (W.last_note_user=Z.userid AND W.user_ten=Y.iso_src)

when I am executing the ab

2条回答
  •  一整个雨季
    2021-01-15 01:49

    You cannot mix JOIN syntaxes in Oracle this way.

    A JOIN condition can only refer tables previously joined using ANSI JOIN syntax.

    Use this:

    SELECT  a, last_note_user, c, d, iso_src
    FROM    X
    CROSS JOIN
            Y
    CROSS JOIN
            Z
    LEFT OUTER JOIN
            W
    ON      W.last_note_user = Z.userid
            AND W.user_ten = Y.iso_src
    

提交回复
热议问题