Advantage SQL Engine
Commits a transaction on the server.
Syntax
COMMIT [WORK]
Remarks
COMMIT WORK commits any work done inside a transaction. The transaction state is shared with the client, so a transaction cannot be committed in SQL if one has not been started either by an Advantage client (i.e., ACE API AdsBeginTransaction) or through the Advantage SQL engine.
Note SQL transactions behave exactly like client transactions. Therefore, with Advantage Local Server, transactions are not supported, but are expected to be executed in a correct sequence.
Examples
BEGIN TRANSACTION
UPDATE sal SET salary = 35000.00 WHERE emp_id = 25089
COMMIT WORK
BEGIN TRAN
UPDATE sal SET salary = 20000 WHERE hire_date < '1992-02-14'
COMMIT