当前位置:网站首页>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 !
边栏推荐
- The evolution of mobile cross platform technology
- Design of music box based on assembly language
- 跨平台(32bit和64bit)的 printf 格式符 %lld 输出64位的解决方式
- ACID事务理论
- The most comprehensive new database in the whole network, multidimensional table platform inventory note, flowus, airtable, seatable, Vig table Vika, flying Book Multidimensional table, heipayun, Zhix
- Recyclerview paging slide
- vscode快捷键
- Multi table operation - Auto Association query
- A guide to threaded and asynchronous UI development in the "quick start fluent Development Series tutorials"
- MySQL basic operation -dql
猜你喜欢

Intern position selection and simplified career development planning in Internet companies

How can beginners learn flutter efficiently?

MySQL transaction
你做自动化测试为什么总是失败?
![[deploy pytoch project through onnx using tensorrt]](/img/b6/ec95f028f749753666c7877134ad70.png)
[deploy pytoch project through onnx using tensorrt]

【TFLite, ONNX, CoreML, TensorRT Export】
自动化测试生命周期

查看rancher中debug端口信息,并做IDEA Remote Jvm Debug
![[calculation of loss in yolov3]](/img/8c/1ad99b8fc1c5490f70dc81e1e5c27e.png)
[calculation of loss in yolov3]

Course design of compilation principle --- formula calculator (a simple calculator with interface developed based on QT)
随机推荐
MySQL data table operation DDL & data type
[loss functions of L1, L2 and smooth L1]
Simple production of wechat applet cloud development authorization login
MySQL constraints
Matlab imoverlay function (burn binary mask into two-dimensional image)
Codeworks 5 questions per day (1700 average) - day 5
投资理财适合女生吗?女生可以买哪些理财产品?
Codeforces Round #804 (Div. 2)
Thoughts and suggestions on the construction of intelligent management and control system platform for safe production in petrochemical enterprises
A new WiFi option for smart home -- the application of simplewifi in wireless smart home
Application of a class of identities (vandermond convolution and hypergeometric functions)
Vscode shortcut key
Basic operations of MySQL data table, addition, deletion and modification & DML
Principle of persistence mechanism of redis
July Huaqing learning-1
自动化测试生命周期
Semantic segmentation experiment: UNET network /msrc2 dataset
HiEngine:可媲美本地的云原生内存数据库引擎
Open3d mesh (surface) coloring
2022年国内云管平台厂商哪家好?为什么?