mysql left join 左鏈接查詢關聯n多張表

最近用mysql 多表關聯查詢比較多,特此總結一下left join用法,拓展下left join將多表關聯。 left join 左鏈接即以左表爲基準,顯示座標全部的行,右表與左表關聯的數據會顯示,不關聯的則不顯示。關鍵字爲left join on。 **基本用法以下: select table a left join table b on a.id = b.ta_id**mysql 注意:1⃣
相關文章
相關標籤/搜索