AI engineering glossary · SQL databases

What is COMMIT (COMMIT and ROLLBACK)?

COMMIT and ROLLBACK (also called COMMIT, ROLLBACK): COMMIT permanently saves all changes made in the current transaction and makes them visible to others; ROLLBACK discards them and restores the earlier state. Together they end a transaction. They are the endpoints of every transaction.

Level: beginnerTopic: SQL databases

COMMIT and ROLLBACK: an example

BEGIN; UPDATE ...; ROLLBACK; leaves the data exactly as it was before BEGIN.

Related terms

More SQL databases terms

Where you learn it

COMMIT and ROLLBACK is part of the AI Engineering Program, which teaches it with notes, a hands-on lab and an exam. The first lesson is free.

Before you go

Take the cheat sheet with you

One free PDF: the key AI-engineering terms, formulas and Python idioms. No spam; unsubscribe any time.