当前位置:网站首页>[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 :
边栏推荐
- The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received
- 用JpaTransactionManager操作数据库事务
- Origin2018安装教程「建议收藏」
- 通过Go语言创建CA与签发证书
- Some abilities can't be learned from work. Look at this article, more than 90% of peers
- Turn -- use setjmp and longjmp in C language to realize exception capture and collaboration
- URL 介绍
- Understanding of indexes in MySQL
- 【嵌入式系统课设】单个按键控制LED灯
- The principle, testing and Countermeasures of malicious software reverse closing EDR
猜你喜欢
![[untitled]](/img/60/9a56e8b00c386779be13308515b24f.png)
[untitled]

转--深入LUA脚本语言,让你彻底明白调试原理

Detailed explanation of twenty common software testing methods (the most complete in History)

Some abilities can't be learned from work. Look at this article, more than 90% of peers

【Kotlin 第三方 】coil koltin协程图片加载库Coil类似Glide的图片加载第三方

Hide the creation and use of users

数字货币:影响深远的创新
![[image segmentation] 2021 segformer neurips](/img/2f/a8631cbe9a46419b8dbd5205e1f5b5.png)
[image segmentation] 2021 segformer neurips
![[MySQL] index classification](/img/73/fb9f28457b373ad35d2f6068387b47.png)
[MySQL] index classification

工作中非常重要的测试策略,你大概没注意过吧
随机推荐
[daily training] 326 Power of 3
Favorite transaction code management tool in SAP GUI
El input text field word limit, beyond which the display turns red and input is prohibited
Using emqx cloud to realize one machine one secret verification of IOT devices
软考信息系统项目管理师_整理的十大管理过程的简写帮助记忆背诵---软考高级之信息系统项目管理师054
Multi picture alert ~ comparison of Huawei ECs and Alibaba cloud ECS
internal field separator
转--利用C语言中的setjmp和longjmp,来实现异常捕获和协程
Explain the volatile keyword
Kubernetes create service access pod
shell 自定义函数
Happy number [fast and slow pointer of ring PROBLEMS]
Flynk SQL client uses comparison and is familiar with official documents
window安装wsl(二)
使用3DMax制作一个象棋棋子
Congratulations on the release of friends' new book (send welfare)
Single step debugging analysis of rxjs observable of operator
转--深入LUA脚本语言,让你彻底明白调试原理
思科--高可用和高可靠网络考试
shell 流程控制