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: Call a store procedure in a SQL statement

Re: Call a store procedure in a SQL statement

From: Daniel Morgan <dmorgan_at_exesolutions.com>
Date: Tue, 15 Oct 2002 15:21:10 GMT
Message-ID: <3DAC3260.F56F0865@exesolutions.com>


Jean-Paul Joanany wrote:

> Hi,
>
> I have written a stored procedure and i am able to call it from a java
> application. Now I would like to call the same procedure into a SQL
> statement fo initializing a column into a table. I know how to pass the
> input parameters, but how to specify the variable the return value must be
> copied in.
>
> Thanks in advance
>
> jean-paul

Use an anonymous block:

DECLARE
   x VARCHAR2(20);
BEGIN
   exec my_proc(x);
END;
/

Daniel Morgan Received on Tue Oct 15 2002 - 10:21:10 CDT

Original text of this message

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