How can we check the current MySQL transaction isolation level?

MySQLMySQLi Database

By executing SELECT @@TX_ISOLATION command we can check the current MySQL transaction isolation level.

Example

mysql> SELECT @@TX_ISOLATION;
+-----------------+
| @@TX_ISOLATION  |
+-----------------+
| REPEATABLE-READ |
+-----------------+
1 row in set (0.00 sec)
raja
Updated on 22-Jun-2020 11:43:36

Advertisements