Info
Open the page on your phone

What is a transaction in a database?

A database transaction is a group of operations that are treated as a single unit of work. Either all of the operations are performed successfully, or none of them are performed at all.

Examples of transactions:

  • Transferring funds from one account to another.
  • Placing an order in an online store.
  • Adding a new record to a database.
  • Transactions are used in various systems where it is important to ensure data integrity. They are an important part of databases and other software systems that work with data.