当前位置:网站首页>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 !
边栏推荐
- Multi table operation - Auto Association query
- Pytorch MLP
- 只是巧合?苹果 iOS16 的神秘技术竟然与中国企业 5 年前产品一致!
- The survey shows that traditional data security tools cannot resist blackmail software attacks in 60% of cases
- Matlab superpixels function (2D super pixel over segmentation of image)
- Four operations and derivative operations of MATLAB polynomials
- Why do you always fail in automated tests?
- Open3d mesh (surface) coloring
- MySQL index (1)
- 手机 CPU 架构类型了解
猜你喜欢

Simply solve the problem that the node in the redis cluster cannot read data (error) moved

abap查表程序

Wireless WiFi learning 8-channel transmitting remote control module

Redirection of redis cluster

mysql拆分字符串做条件查询

Matlab struct function (structure array)
你做自动化测试为什么总是失败?

Sentinel sentinel mechanism of master automatic election in redis master-slave
![[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]

Flutter2 heavy release supports web and desktop applications
随机推荐
Linux安装部署LAMP(Apache+MySQL+PHP)
Which domestic cloud management platform manufacturer is good in 2022? Why?
Hiengine: comparable to the local cloud native memory database engine
mysql拆分字符串做条件查询
跨平台(32bit和64bit)的 printf 格式符 %lld 输出64位的解决方式
GPS數據格式轉換[通俗易懂]
Pytorch softmax regression
byte2String、string2Byte
Uniapp + unicloud + Unipay realize wechat applet payment function
July Huaqing learning-1
Course design of compilation principle --- formula calculator (a simple calculator with interface developed based on QT)
MySQL storage engine
Get data from the database when using JMeter for database assertion
Riddle 1
信息服务器怎么恢复,服务器数据恢复怎么弄[通俗易懂]
MySQL index - extended data
Instance + source code = see through 128 traps
SENT协议译码的深入探讨
语义分割实验:Unet网络/MSRC2数据集
图像超分实验:SRCNN/FSRCNN