428d851913
* refactor: generic rename to mysql * refactor: g4 with mysql syntax * test: mysql syntax * refactor: remove useless keywords * refactor: remove nonReserved keywords * refactor: lint specificFunction --------- Co-authored-by: liuyi <liuyi@dtstack.com>
35 lines
840 B
SQL
35 lines
840 B
SQL
-- https://dev.mysql.com/doc/refman/8.0/en/set-transaction.html
|
|
|
|
/* SET [GLOBAL | SESSION] TRANSACTION
|
|
transaction_characteristic [, transaction_characteristic] ...
|
|
|
|
transaction_characteristic: {
|
|
ISOLATION LEVEL level
|
|
| access_mode
|
|
}
|
|
|
|
level: {
|
|
REPEATABLE READ
|
|
| READ COMMITTED
|
|
| READ UNCOMMITTED
|
|
| SERIALIZABLE
|
|
}
|
|
|
|
access_mode: {
|
|
READ WRITE
|
|
| READ ONLY
|
|
} */
|
|
|
|
|
|
START TRANSACTION;
|
|
|
|
SET GLOBAL TRANSACTION ISOLATION LEVEL REPEATABLE READ;
|
|
SET GLOBAL TRANSACTION ISOLATION LEVEL REPEATABLE READ, ISOLATION LEVEL REPEATABLE READ;
|
|
SET SESSION TRANSACTION ISOLATION LEVEL READ COMMITTED;
|
|
SET GLOBAL TRANSACTION ISOLATION LEVEL READ UNCOMMITTED;
|
|
SET SESSION TRANSACTION ISOLATION LEVEL SERIALIZABLE;
|
|
SET GLOBAL TRANSACTION READ WRITE;
|
|
SET SESSION TRANSACTION READ ONLY;
|
|
|
|
SET TRANSACTION ISOLATION LEVEL SERIALIZABLE;
|