left join 和 inner join 区别

1  left不会走a表的索引,走的是b表的索引微信 2 left 会查询表a 全部的数据,表b没有的就显示为null3d 3 inner会走索引,而且只展现二者都有的数据(主表(a)走索引)blog EXPLAIN select a.* from test a INNER JOIN test_in   b on a.id=b.test_id;  索引 EXPLAIN select a.*,b.*
相关文章
相关标签/搜索