I am currently trying to populate a cursor in the procedure.
like that :
Function notImportantFunction
variable nothing(20);
Cursor notImportantCursor Is select...;
Cursor THEcursor;
begin
open notImportantCursor;
open THEcursor;
LOOP
FETCH notImportantCursor variable;
EXIT WHEN notImportantCursor%NOTFOUND;
THEcursor is select ...; //trying to populate THEcursor
end loop;
close THEcursor;
close notImportantCursor;
end;
i've used weird name for my variable just to show the only important one here is THEcursor.
is what i'm trying even possible? or, how would I be able to do the same in another way.
thank you in advance