Dear all,
1)
I have created package ref test for declaring ref cursor as shown .....
create or replace package ref_test as
type empty is ref cursor;
end;
2)
created package ref_use and used the reference of that ref cursor .....
create or replace package ref_use as
procedure ref_pro (p_empno number,P_result out ref_test.empty);
end;
3)
created package body as shown
create or replace package body ref_use as
procedure ref_pro (p_empno number,P_result out ref_test.empty) as
begin
open P_result for select ename,sal,deptno from emp where empno=p_empno;
end;
end;
/
now i want to execute this package in SQL(+) .could u plz send me the execution code of
this package