当前位置:Gxlcms > 数据库问题 > mysql的explain

mysql的explain

时间:2021-07-01 10:21:17 帮助过:21人阅读

表示通过索引一次就找到了;

key=primary的话,表示使用了主键;

type=all,表示为全表扫描;

key=null表示没用到索引。
type=ref,因为这时认为是多个匹配行,在联合查询中,一般为REF。

经过分析后就可以判断出哪些字段需要建 索引,哪些条件可以优化等. 以及条数等



system > const > eq_ref > ref > fulltext > ref_or_null > index_merge > unique_subquery > index_subquery > range > index > ALL

mysql的explain

标签:com   poi   import   联合查询   语句   了解   copy   syntax   imp   

人气教程排行