SQL Playground
TutorialsPlayground
SQL FormatterSQL MinifierSyntax ValidatorJSON to SQLCSV to SQLSQL to JSONER Diagram Generator
Daily ChallengeInterviewsCheat SheetBlog

© 2026 SQL Playground. Built for developers.

PrivacyTermsAboutRSS Feed
SQL Playground
TutorialsPlayground
SQL FormatterSQL MinifierSyntax ValidatorJSON to SQLCSV to SQLSQL to JSONER Diagram Generator
Daily ChallengeInterviewsCheat SheetBlog
Initializing...
Chapter 9: Transactions
9-1
Your Progress

Transactions

A transaction is a unit of work that is performed against a database. Transactions are reliable, consistent, and isolated.

  • BEGIN TRANSACTION: Starts a new transaction.
  • COMMIT: Saves all changes made during the transaction.
  • ROLLBACK: Undoes all changes made during the transaction.

Task: Start a transaction, update Alice's balance to 1000, and then commit the change.

Loading...
Run a query to see results