tab_a,tab_b,tab_c,tab_d,tab_e
tab_a和tab_b属于正常连接,tab_b和tab_c需要左连接,tab_c、tab_d、tab_e正常连接但是我使用
FROM tab_a a JOIN tab_b b ON a.id=b.id LEFT JOIN tab_c c ON b.id=c.id AND b.time=c.time JOIN tab_d d ON ....检索出来的并不是我想要的集合,但是我仅仅使用:
select * from tab_b b LEFT JOIN tab_c ON b.id=c.id AND b.time = c.time
就可以得到我想要的行数(连接其他表是因为我想要关联表的某些数据),我该如何写着一个SQL?谢谢!