如何使用超过2个表进行LEFT JOIN?

ale*_*nso 15 mysql sql left-join

目前我在做这个查询:

select a.x, b.x, c.x
from number as a, customer as b, numbergroup as c
where a.b = b.b and a.c = c.c and c.b = b.b
Run Code Online (Sandbox Code Playgroud)

但是,我想从表"a"中检索记录,即使"ac = null",由于"a"和"c"之间的连接而未检索到该记录.

我找到了有关"左连接"的信息(http://www.w3schools.com/sql/sql_join_left.asp),但是当查询涉及两个以上的表时,我不知道该怎么做.

任何帮助或指导将不胜感激.

Chr*_*s J 40

select a.x, b.x, c.x 
from number as a
left join customer as b on a.b = b.b
left join numbergroup as c on a.c = c.c and c.b = b.b
Run Code Online (Sandbox Code Playgroud)