txn-details.html 521 B

123456789101112131415
  1. [`BEGIN`] starts a transaction block. Once a transaction is started:
  2. - Statements within the transaction are executed sequentially.
  3. - A transaction ends with either a [`COMMIT`] or a
  4. [`ROLLBACK`] statement.
  5. - If all transaction statements succeed and a [`COMMIT`] is issued, all
  6. changes are saved.
  7. - If all transaction statements succeed and a [`ROLLBACK`] is issued, all
  8. changes are discarded.
  9. - If an error occurs and either a [`COMMIT`] or a [`ROLLBACK`] is issued,
  10. all changes are discarded.