Chapter 9. Managing Transactions
A single update or insert to a database table is often part of several other updates, deletes, or inserts (DML statements) within a unit of work for a particular task. Those inserts, updates, or deletes that must all succeed to maintain the integrity of the data must occur as a database transaction. Every modern RDBMS supports the concept of transactions by encapsulating one or more DML statements and treating them as an atomic unit of work.
In addition to ensuring that the entire set of operations either succeeds or fails, a transaction also hides the visibility of the changes within a transaction from other database users who may be reading or changing the same data. Once a transaction completes, the changes are ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access