On this page

SET AUTOCOMMIT

Core command SE AU

Turns autocommit on or off for the current connection.

Syntax

SET AUTOCOMMIT ON|OFF

Arguments

ArgumentRequiredValuesDefault
ON or OFFYesON commits every statement at once; OFF waits for COMMIT. TRUE and FALSE work too.None

Examples

SET AUTOCOMMIT OFF;
SET AUTOCOMMIT ON;

Details

The change applies to the current connection only, for this session: it is not saved, and a new connection starts with its usual setting. The console then shows the new state; when autocommit is on, it warns that updates can no longer be rolled back. Anything other than ON, OFF, TRUE or FALSE, in any case, is refused.

Last modified in release 5.5.0.

Found something wrong or unclear on this page? , with the page address.