-- Ends the current transaction block and finalizes its modifications.
END [ WORK | TRANSACTION ]
- WORK, TRANSACTION
These are both optional keywords. Neither have any effect.
This message is displayed if the transaction is successfully committed.
- NOTICE: COMMIT: no transaction in progress
This message is displayed if there is no transaction in progress for the END command to end.
The END command is a synonym for COMMIT.
Use it to end transactions the same way you would use the COMMIT command.
The following example demonstrates how to commit a transaction with the END