Commit and Rollback

A commit terminates the current transaction normally. A rollback undoes all the changes to the data source initiated by the current transaction. Both commands remove all prepared SQL requests from the environment.


Top of page

COMMIT

Terminates the current transaction normally.

commit-statement ::= COMMIT WORK

Top of page

Example: Terminating the Current Transaction Normally

COMMIT WORK

Top of page

ROLLBACK

Undoes all the changes to the data source initiated by the current transaction.

rollback-statement ::= ROLLBACK WORK

Top of page

Example: Undoing Changes

ROLLBACK WORK

iWay Software