Suggest an editImprove this articleRefine the answer for “What does the COMMIT command do?”. Your changes go to moderation before they’re published.Approval requiredContentWhat you’re changing🇺🇸EN🇺🇦UAPreviewTitle (EN)Short answer (EN)The `COMMIT` command finishes a transaction and **saves every change made within it** to the database; after `COMMIT`, the results become **permanent** - they can no longer be undone with `ROLLBACK`. **Key point:** for example, after `COMMIT` both changes (the debit and the credit) get committed, and the database treats them as final.Shown above the full answer for quick recall.Answer (EN)ImageThe `COMMIT` command finishes a transaction and **saves every change made within it** to the database. After `COMMIT`, the results become **permanent** - they can no longer be undone with `ROLLBACK`. ### Example ```sql START TRANSACTION; UPDATE users SET balance = balance - 100 WHERE id = 1; UPDATE users SET balance = balance + 100 WHERE id = 2; COMMIT; ``` After `COMMIT`, both changes (the debit and the credit) get committed, and the database treats them as final.For the reviewerNote to the moderator (optional)Visible only to the moderator. Helps review go faster.