Skip to content

Commit

Permalink
Update mysql-questions-01.md
Browse files Browse the repository at this point in the history
修正描述问题
  • Loading branch information
qksuki authored Sep 24, 2024
1 parent 510a823 commit e84117b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/database/mysql/mysql-questions-01.md
Original file line number Diff line number Diff line change
Expand Up @@ -606,7 +606,7 @@ InnoDB 的行锁是针对索引字段加的锁,表级锁是针对非索引字

InnoDB 行锁是通过对索引数据页上的记录加锁实现的,MySQL InnoDB 支持三种行锁定方式:

- **记录锁(Record Lock)**也被称为记录锁,属于单个行记录上的锁。
- **记录锁(Record Lock)**:属于单个行记录上的锁。
- **间隙锁(Gap Lock)**:锁定一个范围,不包括记录本身。
- **临键锁(Next-Key Lock)**:Record Lock+Gap Lock,锁定一个范围,包含记录本身,主要目的是为了解决幻读问题(MySQL 事务部分提到过)。记录锁只能锁住已经存在的记录,为了避免插入新记录,需要依赖间隙锁。

Expand Down

0 comments on commit e84117b

Please sign in to comment.