Atomicity意思

Atomicity is a property of database transactions and refers to the all-or-nothing behavior of a transaction. A transaction is considered atomic if it either completes entirely or rolls back entirely; it cannot leave the database in an inconsistent state. If an error occurs during a transaction, the entire transaction is rolled back as if it never happened, and the database is restored to the state it was in before the transaction began.