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: very new to oracle : need stored procedure sample

Re: very new to oracle : need stored procedure sample

From: Sybrand Bakker <postbus_at_sybrandb.demon.nl>
Date: Fri, 17 Mar 2000 11:04:35 +0100
Message-ID: <953288378.9340.0.pluto.d4ee154e@news.demon.nl>


This is a FAQ... You need to use a REF CURSOR in a procedure.

either refer to the PL/SQL documentation (online at http://technet.oracle.com )
or http://osi.oracle.com/~tkyte/Resultsets/index.html Several final remarks:

Regards,

Sybrand Bakker, Oracle DBA

Christian BRUNO <brunoc_at_ifrance.com> wrote in message news:8asp9v$pco$1_at_minus.oleane.net...
> hello,
>
> i'm new to oracle 8 (migrating from SQL Server) and i want to call, via
> ODBC, a procedure stored on the
> oracle server
>
> this procedure should give me the same result as an sql "select" order
>
> please, tell me how to write this procedure
>
> i've tried this :
>
> CREATE OR REPLACE PROCEDURE spFindCustInfo ( in_code IN VARCHAR(8) )
> IS
> BEGIN
> select CUSTEXT,CUSTADDRESS1 from CUSTOMERS where CUSCODE=in_code;
> END;
> /
>
> but it does not compile
>
> help!!!
> Christian
>
>
>
>
>
Received on Fri Mar 17 2000 - 04:04:35 CST

Original text of this message

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