8. SQL Statements : SET : Autocommit
 
Share this page                  
Autocommit
The SET AUTOCOMMIT ON statement directs the DBMS Server to treat each query as a single-query transaction. SET AUTOCOMMIT OFF, the default, means an explicit COMMIT or ROLLBACK statement or terminating the session is required to terminate a transaction.
The SET AUTOCOMMIT statement cannot be issued in an open transaction. For a description multi-statement transaction behavior, see the chapter “Working with Transactions and Handling Errors.”