Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Ref cursor and PLSQL Table

561456Feb 22 2007 — edited Feb 23 2007
I have data in a PLSQL table of records. How do I pass the contents in a ref cursor back to the calling environment which is Java.
Code is like this :
create procedure p (refcur IN OUT refcurType)
type rec is record (n number,
t varchar2(12).....
......
);
type tabtype is table of rec index by binary integer;
rectab tabtype;
is
begin
--calculate and store values in rectab
now need to pass out contents of rectab in ref cur.
end;

type refcur is ref cursor -- declared in global package.

Please help.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 23 2007
Added on Feb 22 2007
34 comments
3,106 views