数据库 4 种隔离级别
来源:互联网 发布:网络作品版权出售 编辑:程序博客网 时间:2024/06/07 02:31
int java.sql.Connection.TRANSACTION_SERIALIZABLE = 8 [0x8](隔离性最强)
dirty reads, non-repeatable reads and phantom reads are prevented. This level includes the prohibitions in TRANSACTION_REPEATABLE_READ and further prohibits the situation where one transaction reads all rows that satisfy a WHERE condition, a second transaction inserts a row that satisfies that WHERE condition, and the first transaction rereads for the same condition, retrieving the additional "phantom" row in the second read.(即,COMMIT的所有数据都看不到 ,包括 更新/插入/删除 的row统统看不到)
int java.sql.Connection.TRANSACTION_REPEATABLE_READ = 4 [0x4] (隔离性次强)
dirty reads and non-repeatable reads are prevented; phantom reads can occur. This level prohibits a transaction from reading a row with uncommitted changes in it, and it also prohibits the situation where one transaction reads a row, a second transaction alters the row, and the first transaction rereads the row, getting different values the second time (a "non-repeatable read").(即,虽然已经 COMMIT 了,依然有一些数据是 看不到 的: alters 的row看不到。注意:新 插入/删除 的row是可以看到的)
int java.sql.Connection.TRANSACTION_READ_COMMITTED = 2 [0x2]
dirty reads are prevented; non-repeatable reads and phantom reads can occur. This level only prohibits a transaction from reading a row with uncommitted changes in it.(COMMIT 后的数据统统可以看到)
int java.sql.Connection.TRANSACTION_READ_UNCOMMITTED = 1 [0x1](压根就不隔离)
dirty reads, non-repeatable reads and phantom reads can occur. This level allows a row changed by one transaction to be read by another transaction before any changes in that row have been committed (a "dirty read"). If any of the changes are rolled back, the second transaction will have retrieved an invalid row.
- 数据库 4 种隔离级别
- 数据库 4 种隔离级别
- 数据库事务4种隔离级别
- 数据库事务4种隔离级别详解
- 数据库四种隔离级别
- 数据库四种隔离级别
- 数据库四种隔离级别
- 数据库四种隔离级别
- 数据库的七种隔离级别
- 数据库事务的四种隔离级别
- 数据库事务四种隔离级别
- 数据库的四种隔离级别
- 数据库事务四种隔离级别
- 数据库的四种隔离级别
- 数据库事务四种隔离级别
- 数据库事务四种隔离级别
- 数据库事物隔离四种级别详解
- 数据库事物隔离四种级别详解
- 机器学习(Machine Learning)&深度学习(Deep Learning)资料
- angularjs上传 和 <input type="file">与ng-model 的玩法
- CSU 1811 Tree Intersection 平衡树启发式合并
- 开启服务的方式:(3)混合式开启
- 频道管理的简单使用
- 数据库 4 种隔离级别
- 深度学习在推荐领域的应用 Lookalike Facebook node2vec 深度学习 推荐领域
- 机器学习算法—K-近邻(二)
- Servlet初始化和filter过滤器映射的问题
- css中首行缩进无效的问题
- C#敏感词过滤算法实现
- 分块 区间第k小
- HTML5热点 area自适应 jq
- 虚拟机加载时机