mysql_手把手教你理解explain

执行计划: 执行计划字段,黄色部分为重点: 一、ID(重点) 二、select type(了解):simple、primary、subquery、Derived、union、union result 三、partitions: 四、type(重点) 五、possible keys:查询字段中涉及到的索引 六、key:实际使用的索引 七、key_len的计算:索引的长度,主要是为了帮助判断复合索引字
相关文章
相关标签/搜索