当前位置:网站首页>REPEATABLE-READ RR模式区间锁

REPEATABLE-READ RR模式区间锁

2022-07-23 01:32:00 scan724

修改为RR模式:


开启事务[1]:

START TRANSACTION ;

mysql> START TRANSACTION ;
Query OK, 0 rows affected (0.00 sec)

mysql> select connection_id();
+-----------------+
| connection_id() |
+-----------------+
|               1 |
+-----------------+
1 row in set (0.00 sec)

mysql> use xypp;
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A

Database changed
mysql> update test_mysql set events_id='xxxxxx' where events_id='aaa9999';
Query OK, 1 row affected (0.01 sec)
Rows matched: 1  Changed: 1  Warnings: 0

mysql> select @@tx_isolation;
+-----------------+
| @@tx_isolation  |
+-----------------+
| REPEATABLE-READ |
+-----------------+
1 row in set (0.00 s

原网站

版权声明
本文为[scan724]所创,转载请带上原文链接,感谢
https://blog.csdn.net/zhaoyangjian724/article/details/125937066