2018年10月29日

MySQL查询优化 对not in 、in 的优化

摘要: 因为 not in不走索引,所以不在不得已情况下,就不要使用not in 下面使用 join 来替代not in 做查询 select ID from A where ID not in (select ID from B) 替换为 select A.ID from A left join B on 阅读全文

posted @ 2018-10-29 11:52 Alex_guoyihao 阅读(9000) 评论(3) 推荐(0) 编辑

导航