Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in /home/lsp4you/public_html/connect.php on line 2 LSP4YOU - Learner's Support Publications

Transaction - Definition

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.