SQL joining three tables, join precedence

后端 未结 4 500
清酒与你
清酒与你 2020-12-14 15:53

I have three tables: R, S and P.

Table R Joins with S through a foreign key; there should be at least one record in S, so I can JOIN:

SELECT         


        
4条回答
  •  猫巷女王i
    2020-12-14 16:53

    The second join is tied to S as you explicity state JOIN P ON (P.id = S.fkp) - no column from R is referenced in the join.

提交回复
热议问题