left join的多条件查询使用where。
select * from table1 a left join table2 b on a.id= b.k_id and a.name is not null;
select * from table1 a left join table2 b on a.id= b.k_id where a.name is not null;
left join的多条件查询使用where。
select * from table1 a left join table2 b on a.id= b.k_id and a.name is not null;
select * from table1 a left join table2 b on a.id= b.k_id where a.name is not null;