Mar 4, 2002 #1 shammack Programmer Mar 4, 2002 25 US How does one write an Oracle stored procedure that returns a result set? Can anyone provide a brief example?
How does one write an Oracle stored procedure that returns a result set? Can anyone provide a brief example?
Mar 4, 2002 #2 rcurva Programmer Jul 17, 2001 548 AU You can make use of REFCURSOR in Oracle. I am sure there are white papers with examples out there. Robbie "The rule is, not to besiege walled cities if it can possibly be avoided" -- Art of War Upvote 0 Downvote
You can make use of REFCURSOR in Oracle. I am sure there are white papers with examples out there. Robbie "The rule is, not to besiege walled cities if it can possibly be avoided" -- Art of War
Mar 5, 2002 #3 jee Programmer Sep 20, 2001 358 US See the PL/SQL User Guide for examples (Available online at http://otn.oracle.com/docs/products/oracle8i/content.html if you don't have a hardcopy or an Oracle documentation CD). Upvote 0 Downvote
See the PL/SQL User Guide for examples (Available online at http://otn.oracle.com/docs/products/oracle8i/content.html if you don't have a hardcopy or an Oracle documentation CD).
Mar 5, 2002 #4 Guest_imported New member Jan 1, 1970 0 this is the simplest form of ref cursor. variable x refcursor begin open :x for select * from emp; end; / print x Upvote 0 Downvote
this is the simplest form of ref cursor. variable x refcursor begin open :x for select * from emp; end; / print x
Mar 5, 2002 #5 Guest_imported New member Jan 1, 1970 0 I should say, do this in sql*plus. Upvote 0 Downvote