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:
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.