A transaction is a logical unit of database operations that should be executed as a single unit.
Example: Transferring ₹1,000 from Account A to Account B.
Steps:
Deduct ₹1,000 from Account A.
Add ₹1,000 to Account B.
Both operations should succeed together.
Loading…