slicendice
Programmer
Hi
If I have a function that returns a cursor, is it possible to call that function using dynamic SQL? I know it's possible to call a function using something like:
...but I'm not sure how I would handle a cursor that was returned by the function.
Thanks
If I have a function that returns a cursor, is it possible to call that function using dynamic SQL? I know it's possible to call a function using something like:
Code:
DECLARE
vSQL VARCHAR2(100);
iParam INTEGER;
BEGIN
vSQL := 'BEGIN some_function(:1) END;';
iParam := 5;
EXECUTE IMMEDIATE vSQL USING iParam;
END;
...but I'm not sure how I would handle a cursor that was returned by the function.
Thanks