Skip to Main Content

DevOps, CI/CD and Automation

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!

How to read the associated multi-table result set cursor

user10133982Jun 9 2009 — edited Jun 9 2009
How to read the associated multi-table result set cursor

create or replace package Testcursor is

procedure test( io_cursor OUT sys_refcursor);

end Testcursor;


create or replace package body Testcursor is

procedure test(io_cursor OUT sys_refcursor) is
v_cursor sys_refcursor;

begin
if length(trim(i_containerbarcode)) IS NULL
then
OPEN v_cursor FOR Select a.ID,a.Name,b.Code From a,b where a.ID=b.ID and rownum<2;
end if;
/*****************************************
How to read the associated multi-table result set cursor,For example,Read a.id value

*****************************************/
io_cursor:=v_cursor;
end;


end Testcursor;
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 7 2009
Added on Jun 9 2009
2 comments
2,872 views