Transaction Control Language (TCL) Flashcards
7 cards from real SQL practice questions. Tap to flip, then mark Knew It or Still Learning โ missed cards come back until you master them.
Read the first 7 Transaction Control Language (TCL) flashcards as text
Which property of a transaction ensures it completes fully or not at all?
Answer: Atomicity
Atomicity guarantees a transaction is all-or-nothing.
In ACID, what does Durability guarantee?
Answer: Committed changes survive system failures
Durability ensures committed data persists even after crashes or power loss.
Which TCL-related command sets the isolation level for a transaction in standard SQL?
Answer: SET TRANSACTION
SET TRANSACTION ISOLATION LEVEL configures how a transaction interacts with others.
Which isolation level allows dirty reads?
Answer: READ UNCOMMITTED
READ UNCOMMITTED permits reading uncommitted changes from other transactions.
A COMMIT inside a transaction with multiple savepoints does what to those savepoints?
Answer: Removes all savepoints
COMMIT ends the transaction, so all savepoints are released.
Which event typically causes an implicit COMMIT in Oracle?
Answer: Executing a DDL statement
DDL statements like CREATE or ALTER trigger an implicit commit of the current transaction.
What happens to row locks held by a transaction after COMMIT?
Answer: They are released
COMMIT releases locks acquired during the transaction.