Site Menu
- Home
- Products
- NexusDB
- Nexus Quality Suite
- NexusDB Drivers & Connectors
- Nexus Remoting
- Nexus Memory Manager
- Some of our Customers
- Testimonials and use(r)s
- Downloads
- Documentation
- Support
- Pricing & Orders
- About
- Community
- My Nexus
- Recently Updated ...
- Search...
- Site Login
Search
ROLLBACK statement


Cancel a transaction.
Syntax
Usage
The ROLLBACK statement terminates the active transaction and cancels all changes made during the transaction.
Notes
♦ | The COMMIT statement will return an error if no transaction is active. |
Examples
1) | The following example cancels the current transaction: |
ROLLBACK;
2) | The following example shows the ROLLBACK statement used in the context of a TRY statement: |
START TRANSACTION;
TRY
// Execute some data-change statements here.
COMMIT;
CATCH POSITION( 'Unable to open table' IN ERROR_MESSAGE ) <> 0
ROLLBACK;
SIGNAL ERROR_MESSAGE;
END;
Conformance
SQL:2003 standard |
- |
Core SQL |
Questions? Problems?
- Interested to buy but something put you off?
- Can't find what you're looking for?
- Have a suggestion?
Let us know. If you're having trouble contacting us, please check here.
Site Updates
- May 14 2025 - 12:32pm
- Mar 19 2025 - 9:52pm
- Mar 19 2025 - 11:17am
- Mar 14 2025 - 11:23am
- Mar 13 2025 - 11:42pm