A stored procedure is given that cannot be changed. It returns a cursor with the number of columns in the result. Is there an easy way in Oracle for BULK COLLECT INTOonly a subset of the columns provided by the cursor?
FORloops and new collection types should be avoided. I would not want to extract all the data from the cursor, namely the data that is needed.
For example, BULK COLLECTION INTOall columns from the cursor will work:
FETCH s_cursor BULK COLLECT INTO staff_ids;
source
share