若是錶鏈接是多條件的sql
select a.*, b.* from a left join b on a.a1=b.b1 where a2=b2
而且join的多條件和where的多條件都是and鏈接的spa
select a.*, b.* from a left join b on a.a1=b.b1 and a.a2=b.b2 where a.a3=b.b3 and a.a4=b.b4
在使用left jion時,on和where條件的區別以下: code