1. 程式人生 > >MySQL的事物隔離級別

MySQL的事物隔離級別

read uncommitted

read committed

repeatable read

serializable

 查詢事物的隔離級別

SELECT @@GLOBAL.tx_isolation, @@tx_isolation;

SELECT @@tx_isolation;

設定事物的隔離級別

SET SESSION TRANSACTION ISOLATION LEVEL READ UNCOMMITTED;

SET SESSION TRANSACTION ISOLATION LEVEL READ COMMITTED;

SET SESSION TRANSACTION ISOLATION LEVEL REPEATABLE READ;

SET SESSION TRANSACTION ISOLATION LEVEL SERIALIZABLE;

五分鐘搞清楚MySQL事務隔離級別

MySql檢視死鎖和解除鎖

警惕 InnoDB 和 MyISAM 建立 Hash 索引陷阱