//在 mysql5.6 版本可以命中 ad_data_id 这个索引
explain SELECT * from ssp_ad_data left join ssp_ad_statistics on ssp_ad_data.id=ssp_ad_statistics.ad_data_id;
//在 mysql8.0 不能命中索引
提示
Using where; Using join buffer (Block Nested Loop)
//在 mysql5.6 版本可以命中 ad_data_id 这个索引
explain SELECT * from ssp_ad_data left join ssp_ad_statistics on ssp_ad_data.id=ssp_ad_statistics.ad_data_id;
//在 mysql8.0 不能命中索引
提示
Using where; Using join buffer (Block Nested Loop)