BEGIN

A transaction command for starting a transaction block

BEGIN is a transaction command for starting a transaction block. It is equivalent to the SQL standard START TRANSACTION command.

BEGIN has always been present in PostgreSQL.

Basic execution of BEGIN:

postgres=# BEGIN ;
BEGIN
  • PostgreSQL documentation: BEGIN

Categories

SQL command, Transaction command

See also

START TRANSACTION, COMMIT, ROLLBACK