Home »
PL/SQL MCQs
What is TRUE about %ISOPEN in PL/SQL Cursor?
83. What is TRUE about %ISOPEN in PL/SQL Cursor?
- If any DML statement, such as INSERT, DELETE or UPDATE, effects one or more rows, or if a SELECT INTO statement returns at least one row, this method returns TRUE.
- A SELECT INTO statement or DML statements like INSERT, DELETE, AND UPDATE do not result in any rows being affected.
- Because SQL cursors are automatically closed after execution of their associated SQL statements, the function always returns FALSE for implicit cursors.
- Results are returned for DML statements such as inserting, deleting, and updating records, or for those returned by a SELECT INTO command.
Answer: C) Because SQL cursors are automatically closed after execution of their associated SQL statements, the function always returns FALSE for implicit cursors
Explanation:
In the case of %ISOPEN, Because SQL cursors are automatically closed after execution of their associated SQL statements, the function always returns FALSE for implicit cursors.