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

Home -> Community -> Usenet -> c.d.o.misc -> Re: Stored Proc question

Re: Stored Proc question

From: Oleg Dimerman <olegd_at_oeonline.com>
Date: 1997/05/21
Message-ID: <33835FC7.66FE@oeonline.com>#1/1

Prashant Prabhudesai wrote:
>
> Hi:
>
> I am trying to display multiple records in a stored procedure.
>
> We have a VB/ODBC application which calls the stored proc.
>
> For some reason I am unable to get this working.
>
> Stored Proc :
>
> CREATE OR REPLACE PROCEDURE test_proc
> AS
> BEGIN
>
> SELECT batch_id from batch_info;
>
> END test_proc;
>
> /
>
> ERRORS: This one says INTO missing,
> When I add INTO CLAUSE, The Stored Proc compiles but then It fails on EXECUTE
> ERROR MSG: FETCH returns more than One Row.
>
> Basically I would like to get all the rows when I execute the stored proc.
>
> Any Help is greatly appreciated.
>
> Thanks.
>
> Prashant

This functinality is not supported by ORACLE - you can't return rows from the sp, only variables.

-- 
____________________________________
Oleg Dimerman (olegd_at_oeonline.com)
Received on Wed May 21 1997 - 00:00:00 CDT

Original text of this message

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