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: Stored Procedure/Package Returning Recordset to C# application.

Re: Stored Procedure/Package Returning Recordset to C# application.

From: Andy Hassall <andy_at_andyh.co.uk>
Date: Wed, 01 Feb 2006 19:22:26 +0000
Message-ID: <hh22u1d09r5860us6msbs4f7e406komhl9@4ax.com>


On 1 Feb 2006 10:32:25 -0800, "LineVoltageHalogen" <tropicalfruitdrops_at_yahoo.com> wrote:

>Is a ref cursor in a stored procedure the only way to return a record
>set in Oracle 9i/10g?
>In SQL Server you can simply put "select * from table" in a stored proc
>and you are good to go. It appears that in Oracle you cannot do this.
>Any input would be greatly appreciated.

 Ref cursors aren't the only way; look up "pipelined table functions" for an alternative. You can then use the syntax "select * from table(your_function(whatever))".

-- 
Andy Hassall :: andy@andyh.co.uk :: http://www.andyh.co.uk
http://www.andyhsoftware.co.uk/space :: disk and FTP usage analysis tool
Received on Wed Feb 01 2006 - 13:22:26 CST

Original text of this message

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