mysql_手把手教你理解explain

執行計劃: 執行計劃字段,黃色部分爲重點: 一、ID(重點) 二、select type(瞭解):simple、primary、subquery、Derived、union、union result 三、partitions: 四、type(重點) 五、possible keys:查詢字段中涉及到的索引 六、key:實際使用的索引 七、key_len的計算:索引的長度,主要是爲了幫助判斷複合索引字
相關文章
相關標籤/搜索