Declare the RefCursor in a package specification. Then use the package reference in the Dynamic SQL.
As in:
PACKAGE RF IS
TYPE CTyp IS REF CURSOR;
cur CTyp;
END RF;
v_open:= 'BEGIN OPEN RF.Cur '||' FOR '||''''||v_final_str||''''||' USING '|| p1_id ||','|| p2_id||','|| p3_id||'; END;'...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.