当前位置:网站首页>How does MySQL execute an SQL statement?
How does MySQL execute an SQL statement?
2022-07-05 12:16:00 【The king of early rising】
hold sql There are two kinds of statements : Inquire about and to update . Let's talk about it separately .
Query statement
- Connector operation , Determine the account and password , Query user permissions .
- The query cache , If there is no cache, it is going down . If there is , Direct return .(MySQL8.0 Then there is no such step )
- The analyzer analyzes sql Is the statement legal , And get the function of the sentence .
- Optimizer optimization SQL sentence , For example, adjust the index order .
- The actuator first determines whether the user has permission , Then invoke the engine. , Return the execution result of the engine or return error information .
UPDATE statement
- First query the data to be updated
- Get the query statement , Make changes .
- call API Interface , Write this line of data ,InnoDB The engine saves the data in memory , Simultaneous recording redo log. here redo log Enter as prepare state .
- Send completion to the actuator , Signals that can be submitted .
- Actuator record binlog.
- Call engine interface , Submit redo log Is submitted status .
there redo log and binlog What is it? ? And why two log modules are used , You can refer to the blog below .
Keep early hours , take care . The king of early rising wishes you a thousand miles a day !
边栏推荐
- Semantic segmentation experiment: UNET network /msrc2 dataset
- [hdu 2096] Xiaoming a+b
- Differences between IPv6 and IPv4 three departments including the office of network information technology promote IPv6 scale deployment
- Xi IO flow
- Seven ways to achieve vertical centering
- Is investment and finance suitable for girls? What financial products can girls buy?
- Principle of persistence mechanism of redis
- abap查表程序
- 手机 CPU 架构类型了解
- The solution of outputting 64 bits from printf format%lld of cross platform (32bit and 64bit)
猜你喜欢
![[pytorch pre training model modification, addition and deletion of specific layers]](/img/cb/aa0b1116ec9b98e3ee5725aa58f4fe.png)
[pytorch pre training model modification, addition and deletion of specific layers]

查看rancher中debug端口信息,并做IDEA Remote Jvm Debug

MySQL index (1)

MySQL index - extended data

多表操作-自关联查询
调查显示传统数据安全工具在60%情况下无法抵御勒索软件攻击
![[mainstream nivida graphics card deep learning / reinforcement learning /ai computing power summary]](/img/1a/dd7453bc5afc6458334ea08aed7998.png)
[mainstream nivida graphics card deep learning / reinforcement learning /ai computing power summary]

Tabbar configuration at the bottom of wechat applet

嵌入式软件架构设计-消息交互

Reinforcement learning - learning notes 3 | strategic learning
随机推荐
一类恒等式的应用(范德蒙德卷积与超几何函数)
Conversion du format de données GPS [facile à comprendre]
Yolov 5 Target Detection Neural Network - Loss Function Calculation Principle
查看rancher中debug端口信息,并做IDEA Remote Jvm Debug
Codeworks 5 questions per day (1700 average) - day 5
Linux Installation and deployment lamp (apache+mysql+php)
Halcon template matching actual code (I)
Principle of persistence mechanism of redis
POJ-2499 Binary Tree
byte2String、string2Byte
什么是数字化存在?数字化转型要先从数字化存在开始
Hash tag usage in redis cluster
Application of a class of identities (vandermond convolution and hypergeometric functions)
Design of music box based on assembly language
[HDU 2096] 小明A+B
Pytorch weight decay and dropout
Semantic segmentation experiment: UNET network /msrc2 dataset
Get data from the database when using JMeter for database assertion
SENT协议译码的深入探讨
1. Laravel creation project of PHP