COMMIT
The COMMIT statement commits the current transaction.
General format
EXEC SQL [ AT Database ] COMMIT { WORK } [ RELEASE ] { TRAN } { TRANSACTION } END-EXEC |
General Rules
1. Database identifies the active connection that will execute the query and must be previously defined using a Format 4
DECLARE statement.
2. WORK, TRAN and TRANSACTION are synonymous and are assumed if omitted.
3. The RELEASE option frees all resources (locks and cursors) held by the program and logs off the database.
Examples
Commit transaction
exec sql commit work end-exec |