Isolation Level (隔离级别)

 Isolation Level (隔离级别)

 图例:

  MySQL InnoDB 引擎默认的隔离级别是 RR(Repeatable Read):

1 show variables like 'tx_is%';
2 
3 -- 更改
4 set global tx_isolation='read-committed';
5 set global tx_isolation='repeatable-read';

  Oracle/PostgreSQL 等数据库的默认隔离级别是 RC(Read Committed)。

猜你喜欢

转载自www.cnblogs.com/lhy-549/p/10088677.html