Transaction is an action or series of actions, carried out by user or application, which accesses or changes contents of database.
-
A transaction is defined as the unit of work in a database system.
- Application program is series of transactions with non-database processing in between.
- Transforms database from one consistent state to another, although consistency may be violated during transaction.
Database systems that deal with a large number of transactions are also termed as transaction processing systems. Transaction is a unit of data processing.
E.g.:- Transactions at a Bank may be:
- Withdrawal or deposit of money.
- Transfer of money from A's account to B's account.
A transaction would involve manipulation of one or more data values in a database. Thus, it may require reading and writing of database value.