March 2022
Intermediate to advanced
682 pages
22h 58m
English
An SQL transaction is a single unit of work that ends when either a COMMIT statement or a ROLLBACK statement is encountered. Many changes made to a database using SQL commands are not permanent until the user writes a COMMIT statement. The COMMIT makes permanent the changes made since the beginning of the current transaction, which is by default either the beginning of the session or the time since the last COMMIT or ROLLBACK or the last DDL statement. The ROLLBACK statement undoes changes made by the current transaction. It is wise to write COMMIT often to save changes as you work. If you are accessing the database through a program, you can signal the beginning of a transaction by a BEGIN TRANSACTION ...
Read now
Unlock full access