Transaction Properties
Transaction Properties
Transaction:
An action, or series of actions, carried out by a single user or application
program that reads or updates the contents of the database.
A transaction is treated as a logical unit of work on the database.
It may be an entire program, a part of a program, or a single statement
(for example, the SQL statement INSERT or UPDATE).
Example:
A simple transaction against this database is to update the salary of a
particular member of staff given the staff number, x.
State transition:
A transaction can have one of two outcomes. If it completes successfully,
the transaction is said to have committed.
On the other hand, if the transaction does not execute successfully, the
transaction is aborted.
If a transaction is aborted, the database must be restored to previous state.
Properties of Transactions:
The DBMS can ensure consistency by enforcing all the constraints that
have been specified on the database schema, such as integrity constraints.