Having this definitions:
TYPE type_record1 IS RECORD(
id NUMBER,
value NUMBER
);
v_count NUMBER;
TYPE tp_arr_record IS TABLE OF type_record1 INDEX BY PLS_INTEGER;
v_t_arr_record tp_arr_record;
v_results sys_refcursor;
And:
v_results := f_execute_cursor(id_process);
How I can fetch this weak cursor (v_results) using an asociative array like this form:
FOR idx IN v_results
LOOP
v_count := v_count + 1;
v_t_arr_record(v_count).id := idx.id;
v_t_arr_record(v_count).value := idx.value;
END LOOP;
In other words, how can fetch from a sys_refcursor into an asociative array without using a record because I need to get the data set from the cursor?