当前位置:网站首页>[MySQL] basic use of explain and the function of each column
[MySQL] basic use of explain and the function of each column
2022-07-01 23:03:00 【Zhang Yanwei_ Laura】
summary
Use EXPLAIN Keyword can simulate optimizer execution SQL Query statement , So they know MySQL How to deal with you SQL Of the statement . Analyze the performance bottleneck of your query statement or table structure .
adopt explain The results that can be obtained :
- Read order of tables
- Operation type of data reading operation
- Which indexes can be used
- Which indexes can be actually used
- References between tables
- How many rows per table are queried by the optimizer
Basic grammar
EXPLAIN or DESCRIBE The syntax of the statement is as follows :
EXPLAIN SELECT select_options
perhaps
DESCRIBE SELECT select_options
Role of each column
EXPLAIN The functions of each column output by the statement are as follows :
Detailed introduction :
边栏推荐
- Little red book scheme jumps to the specified page
- [literacy] deep / shallow, local / global features in machine learning image processing
- [JUC learning road day 8] condition
- 数字化转型道阻且长,如何迈好关键的第一步
- shell 自定义函数
- ECMAScript 2022 正式发布,有你了解过的吗?
- 下班前几分钟,我弄清了v-model与.sync的区别
- Advanced skills of testers: a guide to the application of unit test reports
- Favorite transaction code management tool in SAP GUI
- Appium automation test foundation - appium installation (I)
猜你喜欢
leetcode - 287. Find duplicates
Quantifiers of regular series
[image segmentation] 2021 segformer neurips
internal field separator
MySQL -- deduction of index storage model
Understanding of indexes in MySQL
Ffmpeg learning notes
14年本科毕业,3个月转行软件测试月薪13.5k,32的岁我终于找对了方向
Multi picture alert ~ comparison of Huawei ECs and Alibaba cloud ECS
Cutefishos system~
随机推荐
104. SAP UI5 表格控件的支持复选(Multi-Select)以及如何用代码一次选中多个表格行项目
想请教一下,证券开户选择哪个证券比较好?手机开户是安全么?
Pytorch nn.functional.unfold()的简单理解与用法
Today's sleep quality record 71 points
Turn -- bring it and use it: share a gadget for checking memory leaks
14年本科毕业,3个月转行软件测试月薪13.5k,32的岁我终于找对了方向
[MySQL] index classification
使用 EMQX Cloud 实现物联网设备一机一密验证
Cloud Vulnerability Global Database
Detailed explanation of common configurations in redis configuration file [easy to understand]
[untitled]
Using securecrtportable to remotely connect virtual machines
Groups and ranges of regular series
Pytorch nn. functional. Simple understanding and usage of unfold()
Cutefishos system~
shell 自定义函数
激发新动能 多地发力数字经济
El input text field word limit, beyond which the display turns red and input is prohibited
Cisco -- highly available and reliable network examination
SAP intelligent robot process automation (IRPA) solution sharing