ACCESS by itself is not an executable statement. In the SQL standard it is reserved for the phrase ACCESS MODE, which can be supplied in transaction control statements such as SET TRANSACTION, START TRANSACTION, and SET SESSION CHARACTERISTICS. The ACCESS MODE tells the database engine whether the current or future transactions are allowed to change data (READ WRITE) or must not perform data-modifying operations (READ ONLY).Because ACCESS is reserved, unquoted use of the word as a table, column, or alias name may raise an error in compliant engines. If you must use it as an identifier, quote or escape it according to the dialect rules (e.g., "ACCESS" in PostgreSQL, `ACCESS` in MySQL).
SET TRANSACTION, START TRANSACTION, READ ONLY, READ WRITE, COMMIT, ROLLBACK, TRANSACTION ISOLATION LEVEL
SQL-92
It is a clause inside SET TRANSACTION, START TRANSACTION, or SET SESSION CHARACTERISTICS that identifies the transaction as READ ONLY or READ WRITE.
They prevent accidental data changes, reduce locking overhead, and allow replicas configured as read-only to serve traffic.
Issue SET TRANSACTION ACCESS MODE READ WRITE inside the same transaction, or simply start a new transaction without the READ ONLY attribute.
Most modern engines recognize ACCESS inside transaction clauses, but exact syntax varies. Always consult your database documentation.