0%

事务隔离级别设置

1
2
3
4
5
6
#查询事务隔离级别
SELECT @@GLOBAL.tx_isolation,@@tx_isolation;

#设置事务隔离级别 read committed
SET SESSION TRANSACTION ISOLATION LEVEL READ COMMITTED;
SET GLOBAL TRANSACTION ISOLATION LEVEL READ COMMITTED;