a表字段类型为int

b表字段类型为varchar

a left join b时如果查询条件是is not null,效率很快,is  null 效率很低

后来两者改为同类型 int,效率很高

相关文章: