explain select ... from 表名
通过在查询语句前面加上关键词explain
会出现一个Extra字段,描述为Using Index或Using Where。
rows表示查询时扫描的数据量