1z0-149 Exam QuestionsBrowse all questions from this exam

1z0-149 Exam - Question 21


Which three statements are true about Implicit Cursor and Explicit Cursor? (Choose three.)

Show Answer
Correct Answer: BCDG

Implicit cursors are automatically created by the database whenever an SQL statement is executed, and they handle the opening, fetching, and closing operations implicitly. An implicit cursor generally returns only one record and is closed automatically after the query is executed. In contrast, explicit cursors are defined by the programmer and can return multiple records as they allow finer control over the cursor operations. The attributes %ISOPEN, %ROWCOUNT, %NOTFOUND, and %FOUND are associated with explicit cursors, enabling the programmer to check the state and outcome of explicit cursor operations. Therefore, the correct statements are: Explicit cursor can return more than one record, %ISOPEN, %ROWCOUNT, %NOTFOUND, and %FOUND are the attributes of explicit cursor, and %ISOPEN is always false in implicit cursor.

Discussion

7 comments
Sign in to comment
FestoOptions: BDG
Mar 24, 2023

BDG Every explicit cursor and cursor variable has four attributes: %FOUND , %ISOPEN %NOTFOUND , and %ROWCOUNT

mattiamarraffa
Sep 28, 2023

Why A is wrong? "Implicit cursors are used in statements that return only one row. If the SQL statement returns more than one row, an error will occur"

Mcromeo
May 6, 2024

For example update employees where job_id='PU_CLERK' will open an implict cursor for more than one row

ISKVOptions: BDG
Apr 16, 2023

BDG is right

pmeyerOptions: BDG
May 23, 2023

BDG is right!

jfc1Options: BDG
Jul 3, 2023

B,D,G is correct answer

muradh8Options: BDG
Dec 2, 2023

B,D,G implicit cursor always closes after run

90e49c7
Dec 31, 2023

C is wrong. D is correct.

rpichuebasOptions: BDG
Feb 5, 2024

BDG is the right answer.