Q
What does SELECT ... FOR UPDATE NOWAIT do when the rows are already locked?
-
A
Waits forever
-
B
Skips the locked rows silently
-
C
Returns an error immediately instead of waiting
-
D
Deletes the locks
Correct Answer:
C. Returns an error immediately instead of waiting
Explanation:
Without NOWAIT the session waits until the lock is released. NOWAIT raises ORA-00054.