mysql 联表查询有时一个关键字段联表是达不到预期效果的,遇到这种情况可以写多个  on  子句条件

 select * from tab_a as a left join tab_b as b 

   on a.id = b.uid and a.extid = b.extid where .......