What must be included within a cursor when the WHERE CURRENT OF clause is used in PL/SQL?
-
DELETE clause
-
UPDATE clause
-
ROWID pseudocolumn
-
FOR UPDATE clause
D
Correct answer
Explanation
The WHERE CURRENT OF clause requires that the cursor was declared with a FOR UPDATE clause. This clause locks the rows that will be updated or deleted, ensuring that the data hasn't changed between when the cursor was opened and when the position-based operation occurs. Without FOR UPDATE, the database cannot guarantee data integrity for the positioned operation.