开发者社区 问答 正文

MySQL的Explain的执行计划包含字段信息有哪些?

MySQL的Explain的执行计划包含字段信息有哪些?

展开
收起
7大帅 2021-12-14 23:20:32 896 分享 版权
1 条回答
写回答
取消 提交回答
  • Explain 执行计划包含字段信息如下:分别是 id、select_type、table、partitions、type、possible_keys、key、key_len、ref、rows、filtered、Extra 等12个字段。

    我们重点关注的是type,它的属性排序如下:

    system > const > eq_ref > ref > ref_or_null >

    index_merge > unique_subquery > index_subquery >

    range > index > ALL

    2021-12-14 23:35:37
    赞同 展开评论