当前位置:网站首页>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 !
边栏推荐
- Reinforcement learning - learning notes 3 | strategic learning
- MySQL data table operation DDL & data type
- Take you two minutes to quickly master the route and navigation of flutter
- Application of a class of identities (vandermond convolution and hypergeometric functions)
- 投资理财适合女生吗?女生可以买哪些理财产品?
- Is investment and finance suitable for girls? What financial products can girls buy?
- Linux Installation and deployment lamp (apache+mysql+php)
- Hash tag usage in redis cluster
- Course design of compilation principle --- formula calculator (a simple calculator with interface developed based on QT)
- Intern position selection and simplified career development planning in Internet companies
猜你喜欢

Master the new features of fluent 2.10

One article tells the latest and complete learning materials of flutter

Matlab imoverlay function (burn binary mask into two-dimensional image)

Flutter2 heavy release supports web and desktop applications

Codeworks 5 questions per day (1700 average) - day 5

16 channel water lamp experiment based on Proteus (assembly language)

MySQL transaction

Splunk configuration 163 mailbox alarm

1 plug-in to handle advertisements in web pages

MySQL splits strings for conditional queries
随机推荐
Just a coincidence? The mysterious technology of apple ios16 is actually the same as that of Chinese enterprises five years ago!
Error modulenotfounderror: no module named 'cv2 aruco‘
Linux安装部署LAMP(Apache+MySQL+PHP)
Yolov 5 Target Detection Neural Network - Loss Function Calculation Principle
Reading notes of growth hacker
Course design of compilation principle --- formula calculator (a simple calculator with interface developed based on QT)
MySQL installation, Windows version
yolov5目標檢測神經網絡——損失函數計算原理
Xi IO flow
Why learn harmonyos and how to get started quickly?
自动化测试生命周期
16 channel water lamp experiment based on Proteus (assembly language)
Matlab imoverlay function (burn binary mask into two-dimensional image)
[pytorch pre training model modification, addition and deletion of specific layers]
Liunx prohibit Ping explain the different usage of traceroute
手机 CPU 架构类型了解
POJ-2499 Binary Tree
How can beginners learn flutter efficiently?
PXE startup configuration and principle
POJ-2499 Binary Tree