Help Center > > Developer Guide> SQL Reference> Controlling Transactions

Controlling Transactions

Updated at: Mar 13, 2020 GMT+08:00

A transaction is a user-defined sequence of database operations, which form an integral unit of work.

Starting transactions

DWS starts a transaction using START TRANSACTION and BEGIN. For details, see START TRANSACTION and BEGIN.

Setting transactions

DWS sets a transaction using SET TRANSACTION or SET LOCAL TRANSACTION. For details, see SET CONSTRAINTS.

Submitting a transaction

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.

If an execution request (not in a transaction block) received in the database contains multiple statements, the statements will be packed into a transaction. If one of the statements fails, the entire request will be rolled back.

Did you find this page helpful?

Submit successfully!

Thank you for your feedback. Your feedback helps make our documentation better.

Failed to submit the feedback. Please try again later.

Which of the following issues have you encountered?

Please complete at least one feedback item.

Content most length 200 character

Content is empty.

OK Cancel