Difficulty: Easy
Correct Answer: Correct
Explanation:
Introduction / Context:
AUTOCOMMIT controls how your session ends transactions. Understanding this setting prevents surprises such as unintended commits or uncommitted work. The question asks whether, with AUTOCOMMIT enabled, each statement is committed automatically when it finishes.
Given Data / Assumptions:
Concept / Approach:
With AUTOCOMMIT ON, each successful statement is its own transaction: the platform issues an implicit COMMIT after that statement completes successfully. If the statement fails, changes are implicitly rolled back. With AUTOCOMMIT OFF, multiple statements can be grouped into a single transaction until an explicit COMMIT or ROLLBACK is issued.
Step-by-Step Solution:
Verification / Alternative check:
Open two sessions: in one, with AUTOCOMMIT ON, perform an UPDATE; in the second session, immediately SELECT the affected rows—changes are visible without an explicit COMMIT in the first session.
Why Other Options Are Wrong:
Common Pitfalls:
Forgetting AUTOCOMMIT is ON and making irreversible changes; assuming a tool’s UI default equals the server’s default.
Final Answer:
Correct
Discussion & Comments