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.*
相關文章
相關標籤/搜索