Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: Can you return a result set from a stored procedure?

Re: Can you return a result set from a stored procedure?

From: dave mausner <dmausner_at_ameritech.x.net>
Date: Thu, 27 Jan 2000 02:51:01 GMT
Message-ID: <8EC7D02EEdlm@206.141.192.241>


john_at_snapjax.com (John Hamm) wrote in <86num4$ela$1_at_news.gate.net>:
>create procedure test
>...
> select * from patients

yes you can do that in sybase and sql-server (yawn) but this is oracle so it is different. look into refcursors which allow a proc to open a cursor and then pass it back to the calling program for use. you will not need to restrict the cursor to 25 rows; the program can fetch from the cursor until it is out of data.
--
dave mausner Received on Wed Jan 26 2000 - 20:51:01 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US