Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ref cursor

Status
Not open for further replies.

JazzMaan

Programmer
Jun 15, 2004
57
US
Can i do a select on ref cursor like this:

procedure (r_cursor OUT ref_cursor,
flag OUT varchar);

OPEN r_cursor FOR
select items from po_items where .... ;

select count(*) into lcount from r_cursor;

if lcount=0 then flag = 'N'
else flag = 'Y'
end if;

end;
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top