How to do LEFT JOIN with more than 2 tables?

前端 未结 1 1214
礼貌的吻别
礼貌的吻别 2021-02-05 10:34

Currently I am doing this query:

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
相关标签:
1条回答
  • 2021-02-05 10:53
    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
    
    0 讨论(0)
提交回复
热议问题