当前位置:网站首页>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 !
边栏推荐
- Four operations and derivative operations of MATLAB polynomials
- Pytorch softmax regression
- Check the debug port information in rancher and do idea remote JVM debug
- What is digital existence? Digital transformation starts with digital existence
- 投资理财适合女生吗?女生可以买哪些理财产品?
- Get data from the database when using JMeter for database assertion
- MySQL basic operation -dql
- PXE startup configuration and principle
- Recyclerview paging slide
- One article tells the latest and complete learning materials of flutter
猜你喜欢
调查显示传统数据安全工具在60%情况下无法抵御勒索软件攻击
Uniapp + unicloud + Unipay realize wechat applet payment function
Learn the memory management of JVM 02 - memory allocation of JVM
Pytorch MLP
How can beginners learn flutter efficiently?
Matlab superpixels function (2D super pixel over segmentation of image)
HiEngine:可媲美本地的云原生内存数据库引擎
The survey shows that traditional data security tools cannot resist blackmail software attacks in 60% of cases
报错ModuleNotFoundError: No module named ‘cv2.aruco‘
Simple production of wechat applet cloud development authorization login
随机推荐
Codeforces Round #804 (Div. 2)
Riddle 1
什么是数字化存在?数字化转型要先从数字化存在开始
GPS數據格式轉換[通俗易懂]
Tabbar configuration at the bottom of wechat applet
【TFLite, ONNX, CoreML, TensorRT Export】
SENT协议译码的深入探讨
July Huaqing learning-1
byte2String、string2Byte
想问问,如何选择券商?在线开户是很安全么?
A guide to threaded and asynchronous UI development in the "quick start fluent Development Series tutorials"
abap查表程序
[HDU 2096] 小明A+B
MySQL function
Differences between IPv6 and IPv4 three departments including the office of network information technology promote IPv6 scale deployment
7月华清学习-1
PXE startup configuration and principle
Deep discussion on the decoding of sent protocol
Complete activity switching according to sliding
Video networkState 属性