mysql in 中使用子查询,会不使用索引而走全表扫描

  所以可以将 in 条件中 子查询转换成一张子表,从而通过 join 的形式进行条件限制。

posted @ 2017-12-13 22:26  jiguojing  阅读(3117)  评论(0编辑  收藏  举报