Skip to content

Commit

Permalink
Update mysql-questions-01.md
Browse files Browse the repository at this point in the history
  • Loading branch information
ImCa0 authored Sep 21, 2022
1 parent 8379c0b commit 88e0948
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 @@ -381,7 +381,7 @@ SELECT ... FOR UPDATE;
意向锁是表级锁,共有两种:
- **意向共享锁(Intention Shared Lock,IS 锁)**事务有意向对表中的某些加共享锁(S 锁),加共享锁前必须先取得该表的 IS 锁。
- **意向共享锁(Intention Shared Lock,IS 锁)**事务有意向对表中的某些记录加共享锁(S 锁),加共享锁前必须先取得该表的 IS 锁。
- **意向排他锁(Intention Exclusive Lock,IX 锁)**:事务有意向对表中的某些记录加排他锁(X 锁),加排他锁之前必须先取得该表的 IX 锁。
意向锁是有数据引擎自己维护的,用户无法手动操作意向锁,在为数据行加共享 / 排他锁之前,InooDB 会先获取该数据行所在在数据表的对应意向锁。
Expand Down

0 comments on commit 88e0948

Please sign in to comment.