查看查询语句是否使用到了索引
explain select ... from 表名

通过在查询语句前面加上关键词explain

会出现一个Extra字段,描述为Using Index或Using Where。

rows表示查询时扫描的数据量


首页 我的博客
粤ICP备17103704号