MySQL Using where, Using index, Using index condition

Using index condition: 索引下推,意思是解析索引列, 找到符合条件的数据.
Using where, Using Index: Using index使用索引过滤数据, Using where 仍然可以在非索引列上执行表扫描,但是如果在where条件中有任何索引列,那么它将使用更类似于使用索引条件的where条件
Using where; Using index 表示既使用了索引,也需要通过where条件回表查询数据,而如果只有Using index,则表示不需要回表查数据。
Using where; Using index 要好于Using index condition.

参考

  1. https://stackoverflow.com/questions/25672552/whats-the-difference-between-using-index-and-using-where-using-index-in-the
  2. https://dev.mysql.com/doc/refman/5.7/en/index-extensions.html
  3. https://stackoverflow.com/questions/28759576/mysql-using-index-condition-vs-using-where-using-index
  4. https://segmentfault.com/q/1010000003094577
最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。