PL/SQL (MOSC)

MOSC Banner

ref_cursor not getting proper output

edited Jul 4, 2012 9:47PM in PL/SQL (MOSC) 7 commentsAnswered ✓
hi,
can you please help me to fix the problem in the above code

create or replace function funone( a in varchar2) return sys_refcursor is
v_t sys_refcursor;
begin
open v_t for a;
return v_t;
end;

select funone('select * from emp') from dual;

Regards
------------
Ripendra

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center