inno db isolation levels and locking
问题 I am reading a manual about innodb transactions but still, there is lots of unclear stuff to me. For instance, I don't quite understand to the following behaviour: -- client 1 -- client 2 mysql> create table simple (col int) engine=innodb; mysql> insert into simple values(1); Query OK, 1 row affected (0.00 sec) mysql> insert into simple values(2); Query OK, 1 row affected (0.00 sec) mysql> select @@tx_isolation; +-----------------+ | @@tx_isolation | +-----------------+ | REPEATABLE-READ | +-