sql
-- 查询事务隔离级别
SELECT @@GLOBAL.TRANSACTION_ISOLATION;
-- 设置事务隔离级别
SET GLOBAL TRANSACTION ISOLATION LEVEL level;
-- level的取值为下方4种
READ UNCOMMITTED
READ COMMITTED
REPEATABLE READ
SERIALIZABLE
-- 查询事务隔离级别
SELECT @@GLOBAL.TRANSACTION_ISOLATION;
-- 设置事务隔离级别
SET GLOBAL TRANSACTION ISOLATION LEVEL level;
-- level的取值为下方4种
READ UNCOMMITTED
READ COMMITTED
REPEATABLE READ
SERIALIZABLE