Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

SET TRANSACTION

SET TRANSACTION ISOLATION LEVEL {
    READ UNCOMMITTED | READ COMMITTED | REPEATABLE READ | SERIALIZABLE
};

The command changes the isolation of the current transaction and must run before its first query or write. Outside a transaction, it sets the isolation for the next transaction.

Amphi executes READ COMMITTED and REPEATABLE READ. Although READ UNCOMMITTED and SERIALIZABLE are accepted by the parser for syntax compatibility, they return SQLSTATE 0A000 because they are not implemented.

READ ONLY, DEFERRABLE, and equivalent options are not currently available. If the command runs after a query or write in the transaction, it returns SQLSTATE 25001.