我想知道,第一次加入后左表和右表是什么。
例如:
From final_productions fp
left join things.pc p on fp.production_id = p.id
left join events.time t on fp.tx_id = t.id
left join things.car c on c.id = fp.channel_id
right join events.form f on f.production_id = p.id
left join events.trigger_alert ta on mc.cue_sheet_id = ta.id
我知道對于第一個左連接inner join things.pc p on fp.production_id = p.id,左表將是from statementwhich is中的表final_productions。但是其他連接(即第一個連接陳述句之后的連接)呢?有人可以解釋一下嗎?謝謝
uj5u.com熱心網友回復:
檔案說:
可以在
JOIN子句周圍使用括號來控制連接順序。在沒有括號的情況下,JOIN 子句從左到右嵌套。
所以
a LEFT JOIN b RIGHT JOIN c
是相同的
(a LEFT JOIN b) RIGHT JOIN c
轉載請註明出處,本文鏈接:https://www.uj5u.com/qiye/419762.html
標籤:
下一篇:協程本質上是單執行緒的嗎?
