根據慕課網課程中的方法,查詢事務隔離級別使用:
select @@tx_isolation;
我在sequal pro中,卻提示錯誤:Unknown system variable 'tx_isolation'
查詢了官方文檔,在8.0+就已經拋棄了這樣的查詢方法,https://dev.mysql.com/doc/refman/8.0/en/server-system-variables.html

在MySQL 8.0.3 中,該變量已經被 transaction_isolation 替換了。
最新的查詢方法有多種,下面提供2種:
1、select @@transaction_isolation;

2、show variables like 'transaction_isolation';

