Skip to content

Commit

Permalink
correct不可重复读
Browse files Browse the repository at this point in the history
  • Loading branch information
wolverinn authored Dec 2, 2020
1 parent d05e05a commit cc918c6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Database.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@
### 会出现哪些并发一致性问题?
- **丢失修改**:一个事务对数据进行了修改,在事务提交之前,另一个事务对同一个数据进行了修改,覆盖了之前的修改;
- **脏读**(Dirty Read):一个事务读取了被另一个事务修改、但未提交(进行了回滚)的数据,造成两个事务得到的数据不一致;
- **不可重复读**(Nonrepeatable Read):在同一个事务中,某查询操作在一个时间读取某一行数据和之后一个时间读取该行数据,发现数据已经发生修改(可能被更新或删除了);
- **幻读**(Phantom Read):当同一查询多次执行时,由于其它事务在这个数据范围内执行了**插入操作**,会导致每次返回不同的结果集(和不可重复读的区别:针对的是一个数据整体/范围;并且需要是插入操作
- **不可重复读**(Nonrepeatable Read):在同一个事务中,某查询操作在一个时间读取某一行数据和之后一个时间读取该行数据,发现数据已经发生修改(针对**update**操作);
- **幻读**(Phantom Read):当同一查询多次执行时,由于其它事务在这个数据范围内执行了插入操作,会导致每次返回不同的结果集(和不可重复读的区别:针对的是一个数据整体/范围;并且针对**insert/delete**操作

### 数据库的四种隔离级别?

Expand Down

0 comments on commit cc918c6

Please sign in to comment.