最佳答案
我读过关于四个层次的隔离:
Isolation Level Dirty Read Nonrepeatable Read Phantom Read
READ UNCOMMITTED Permitted Permitted Permitted
READ COMMITTED -- Permitted Permitted
REPEATABLE READ -- -- Permitted
SERIALIZABLE -- -- --
我想要了解每个事务隔离对桌子的锁定
READ UNCOMMITTED - no lock on table
READ COMMITTED - lock on committed data
REPEATABLE READ - lock on block of sql(which is selected by using select query)
SERIALIZABLE - lock on full table(on which Select query is fired)
below are the three phenomena which can occur in transaction isolation
肮脏读取-没有锁
Nonrepeatable Read - no dirty read as lock on committed data
Phantom Read -lock on block of sql (通过使用 select query 选择)
我想了解 在哪里定义这些隔离级别: 仅在 jdbc/hibernate 级别或在 DB 中定义
PS: 我已经看过了 神谕中的隔离级别中的链接,但是它们看起来很笨拙,而且是针对数据库的