forked from docs/doc-exports
Reviewed-by: Hasko, Vladimir <vladimir.hasko@t-systems.com> Co-authored-by: Lu, Huayi <luhuayi@huawei.com> Co-committed-by: Lu, Huayi <luhuayi@huawei.com>
3.2 KiB
3.2 KiB
Controlling Transactions
A transaction is a user-defined sequence of database operations, which form an integral unit of work.
Starting Transactions
GaussDB(DWS) starts a transaction using START TRANSACTION and BEGIN. For details, see START TRANSACTION and BEGIN.
Setting Transactions
GaussDB(DWS) sets a transaction using SET TRANSACTION or SET LOCAL TRANSACTION. For details, see SET TRANSACTION.
Submitting Transactions
GaussDB(DWS) commits all operations of a transaction using COMMIT or END. For details, see COMMIT | END.
Rolling Back Transactions
If a fault occurs during a transaction and the transaction cannot proceed, the system performs rollback to cancel all the completed database operations related to the transaction. For details, see ROLLBACK.
Parent topic: SQL Syntax Reference