Oracle
1Z0-146 · Question #66
View the Exhibit and examine the code in the PL/SQL block. The PL/SQL block generates an error on execution. What is the reason?
The correct answer is A. The DELETE(n) method cannot be used with varrays. Restriction on DELETE If collection is a varray, you cannot specify indexes with DELETE.
Advanced PL/SQL Features
Question
View the Exhibit and examine the code in the PL/SQL block. The PL/SQL block generates an error on execution. What is the reason?
Exhibit
Options
- AThe DELETE(n) method cannot be used with varrays.
- BThe DELETE(n) method cannot be used with nested tables.
- CThe NEXT method cannot be used with an associative array with VARCHAR2 key values.
- DThe NEXT method cannot be used with a nested table from which an element has been deleted.
How the community answered
(54 responses)- A72% (39)
- B6% (3)
- C4% (2)
- D19% (10)
Explanation
Restriction on DELETE If collection is a varray, you cannot specify indexes with DELETE.
Topics
#VARRAY#DELETE method restriction#collection methods#nested table
Community Discussion
No community discussion yet for this question.
