mysql 事务测试
mysql> show variables like “tx%”;
+—————+—————–+
| Variable_name | Value |
+—————+—————–+
| tx_isolation | REPEATABLE-READ |
+—————+—————–+
1 row in set (0.00 sec)
A B
select A = 100
start transaction
update record A set 111
select A = 111
update record A set 122
select A = 111
update A = 333
select A = 122
update record A set 111
block
commit
unblock
select A = 111
