🔄Update: MySQL

This commit is contained in:
2025-09-25 20:14:36 +08:00
parent c4b62a4aa8
commit acf3132514
4 changed files with 115 additions and 0 deletions
+31
View File
@@ -0,0 +1,31 @@
# 执行一条 SQL 语句的过程
## 连接器
- 连接到服务(TCP)
- 验证用户身份
- 验证用户权限
## 解析器
- 词法分析
- 语法分析
## 预处理器
- 检查表以及字段
- 扩展 * 符号
## 优化器
- 决定使用的索引
## 执行器
- 与存储引擎交互
*三种交互*
- 主键索引
- 全表扫描
- 索引下推