Skip to content

MySQL-进阶之Explain详解 | Husy #15

@husying

Description

@husying

https://husycode.cn/2020/01/10/mysql-jin-jie-zhi-explain-xiang-jie/

在 MySQL 性能优化中,慢查询优化是我们经常需要解决的问题。通常我们可以使用 Explain 命令来了解 SQL 语句的执行计划,仅对select语句有效
Explain代码演示如下

explain 查询会输出 12 列,如:id、s

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions