Skip to content
Advertisement

passing sys_refcursor from function to sys_refcursor out parameter in procedure

I have problem with outputting results from the sys_refcursor returned from the function stored in the variable crs_scenarios. I then want to pass this collection of data to the output parameter pout_result. I get the error PLS-00487: Invalid reference to variable ‘POUT_RESULT’. Can you advise me please, how to solve this issue?

Thanks a lot!

Advertisement

Answer

Sys_refcursor is only a SQL definition. If you want to run it, you have to FETCH data. So pout_result varible has no data itself.

——– function —–

— execution

— Result

User contributions licensed under: CC BY-SA
6 People found this is helpful
Advertisement