Menu
Amazon Redshift
Database Developer Guide (API Version 2012-12-01)

END

Commits the current transaction. Performs exactly the same function as the COMMIT command.

See COMMIT for more detailed documentation.

Syntax

Copy
END [ WORK | TRANSACTION ]

Parameters

WORK

Optional keyword.

TRANSACTION

Optional keyword; WORK and TRANSACTION are synonyms.

Examples

The following examples all end the transaction block and commit the transaction:

Copy
end;

Copy
end work;

Copy
end transaction;

After any of these commands, Amazon Redshift ends the transaction block and commits the changes.

On this page: