IT lexicon › Database › Commit

Commit

Database På svenska → Updated: 2026-11-10

The SQL command that finalizes a transaction and makes all its changes permanent in the database.

A transaction is a sequence of SQL commands where all succeed together or all fail together — never partially. While a transaction is open, changes are temporary; other connections can't see them. Only when COMMIT runs do those changes become visible to the world and can't be undone (except by subsequent transactions or system recovery, which the log handles). If something goes wrong before commit, ROLLBACK erases everything.

Commit is the key to ACID — without it, you can't guarantee atomicity.

← Back to the lexicon