ROLLBACK
Function
Rolls back the current transaction and backs out all updates in the transaction.
ROLLBACK backs out of all changes that a transaction makes to a database if the transaction fails to be executed due to a fault.
Precautions
If a ROLLBACK statement is executed out of a transaction, no error occurs, but a warning information is displayed.
Syntax
1
|
ROLLBACK [ WORK | TRANSACTION ]; |
Parameter Description
WORK | TRANSACTION
This keyword is optional and only improves readability, with no effect on the ROLLBACK operation.
Examples
Undo all changes in the current transaction:
1
|
ROLLBACK; |
Helpful Links
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot