sql - “repeatable read”和 “snapshot isolation”有什么区别

标签 sql database isolation-level

可重复读定义为

a higher isolation level, that in addition to the guarantees of the read committed level, it also guarantees that any data read cannot change, if the transaction reads the same data again, it will find the previously read data in place, unchanged, and available to read.



这似乎与快照隔离非常相似。

可重复读取与快照隔离级别有何不同?

最佳答案

“快照”确保事务内的所有查询将看到事务开始时的数据。

“可重复读取”仅保证如果事务中的多个查询读取相同的行,则它们每次将看到相同的数据。 (因此,不同的表可能会在不同的时间快照,具体取决于事务首次查询它们的时间。)

关于sql - “repeatable read”和 “snapshot isolation”有什么区别,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55215013/

相关文章:

Oracle 事务读取一致性?

sql - Erlang ODBC 连接挑战

sql - Oracle 认为表在 alter 期间不存在

sql - 删除重复记录,只保留最新的一条

mysql - 自连接mysql复杂查询

java - 如何用Java处理大数据?

sql - 通过高事务隔离级别防止更新丢失 : Is this a common misconception?

SQL 内连接 3 个表?

wpf - 使用 MVVM 和 EF 的简单 WPF

sql - SSIS 包中 ReadUncommissed 隔离级别的解决方法