Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: Stored Procedure/Package Returning Recordset to C# application.
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 toolReceived on Wed Feb 01 2006 - 13:22:26 CST