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: Getting recordset from stored procedure

Re: Getting recordset from stored procedure

From: Matthew MacFarland <dril_at_quip.com>
Date: Wed, 27 May 1998 08:13:57 -0500
Message-ID: <6kh3eo$ao9$1@uuneo.neosoft.com>


Hello,

You have to use Cursors to do this. Then loop through the Cursor row by row.

Cursor c_Emp
IS
SELECT * FROM EMP; BEGIN FOR v_Data in c_Emp LOOP

    --Statements to process each row
END LOOP; Matthew MacFarland

Nobody wrote in message <356b7c21.35539833_at_nntp.ix.netcom.com>...
>I am a seasoned SQL Server stored procedure programmer. But in Oracle,
>is there a way to return record sets from a stored procedure? I wish
>to do something like this:
>
>create procedure get_data
>as
>begin
> select * from emp;
>end;
>/
>
>Please help, thanks.
Received on Wed May 27 1998 - 08:13:57 CDT

Original text of this message

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