![](/style/images/good.png)
0
![](/style/images/bad.png)
Mysql查看索引使用状态
source link: https://panda843.github.io/article/1119887905.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
Mysql查看索引使用状态 | 是潘达呀
Mysql查看索引使用状态
发表于 2017-12-27 | 分类于 数据库 | | 浏览2 次 | 字数统计: 1.2k | 阅读时长 ≈ 4
在分析查询性能时,考虑EXPLAIN关键字同样很管用。EXPLAIN关键字一般放在SELECT查询语句的前面,用于描述MySQL如何执行查询操作、以及MySQL成功返回结果集需要执行的行数。explain 可以帮助我们分析 select 语句,让我们知道查询效率低下的原因,从而改进我们查询,让查询优化器能够更好的工作。
explain select * from k8s_user where id = 1; |
EXPLAIN列的解释:
table:显示这一行的数据是关于哪张表的 |
extra列返回的描述的意义
Distinct:一旦MYSQL找到了与行相联合匹配的行,就不再搜索了 |
-------------本文结束感谢您的阅读-------------
坚持原创技术分享,您的支持将鼓励我继续创作!
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK