Multiple choice technology databases

Select the best answer. This is an example of what _____ type of cursor? DECLARE l_date DATE; CURSOR c1 IS SELECT TRUNC(SYSDATE) FROM DUAL; BEGIN OPEN c1; FETCH c1 INTO l_date; CLOSE c1; END;

  1. Explicit

  2. Implicit

  3. Select

  4. PL/SQL

  5. None of the above.

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

This is an explicit cursor because it is explicitly declared with the CURSOR keyword, then explicitly opened, fetched from, and closed. Explicit cursors give you fine-grained control over query execution. Implicit cursors are created automatically by Oracle for SQL statements embedded in PL/SQL code (like SELECT...INTO or implicit cursor FOR loops).