时间:2021-07-01 10:21:17 帮助过:2人阅读
SELECT @@session.tx_isolation;
默认的是
可以通过以下方式修改隔离级别:
set tx_isolation=‘read-committed‘;
mysql> select @@tx_isolation;
+-----------------+
| @@tx_isolation |
+-----------------+
| REPEATABLE-READ |
+-----------------+
1 row in set (0.00 sec)
mysql> set tx_isolation=‘read-committed‘;
Query OK, 0 rows affected (0.00 sec)
mysql> select @@tx_isolation;
+----------------+
| @@tx_isolation |
+----------------+
| READ-COMMITTED |
+----------------+
1 row in set (0.00 sec)
记住以下这张表:
Mysql数据库事务及隔离级别学习测试
标签: