Suggest an editImprove this articleRefine the answer for “What does the term "atomicity" mean?”. Your changes go to moderation before they’re published.Approval requiredContentWhat you’re changing🇺🇸EN🇺🇦UAPreviewTitle (EN)Short answer (EN)**Atomicity** is one of a transaction's properties (the **A** in ACID): it means **every operation inside a transaction runs as a single unit** - either **all succeed**, or **none of them runs**. **Key point:** if the first command succeeds but the second fails, the whole transaction **rolls back** (`ROLLBACK`), leaving the data exactly as it was before; atomicity guarantees the database never ends up in a "half-done" state.Shown above the full answer for quick recall.Answer (EN)Image**Atomicity** is one of a transaction's properties (the **A** in ACID), and it means **every operation inside a transaction runs as a single unit**: either **all of them succeed**, or **none of them runs**. **Example:** ```sql BEGIN; UPDATE accounts SET balance = balance - 100 WHERE id = 1; UPDATE accounts SET balance = balance + 100 WHERE id = 2; COMMIT; ``` If the first command succeeds but the second one fails (e.g. due to an error), the whole transaction **rolls back** (`ROLLBACK`), and the balance on both accounts stays as it was. **Summary:** Atomicity guarantees the database **never ends up in a "half-done" state** - data changes **as a whole, completely, or not at all**.For the reviewerNote to the moderator (optional)Visible only to the moderator. Helps review go faster.