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: Pb with stocked Procedure

Re: Pb with stocked Procedure

From: Sybrand Bakker <postbus_at_sybrandb.demon.nl>
Date: Wed, 19 Sep 2001 18:10:23 +0200
Message-ID: <tqhgv9kc38jq49@news.demon.nl>

"Zemotard" <nicolas.ponchel_at_orange.fr> wrote in message news:9oae1j$39t$1_at_wanadoo.fr...
> I have this stocked procedure and i would like execute this with sql but i
> don't know the syntax.
> So i need a some help.
>
> thanks
>
> CREATE OR REPLACE PROCEDURE MAX_PROJET(nNum_Proj out integer)
> AS
> BEGIN
> select max(N_PROJET) into nNum_Proj from PROJET;
> exception when no_data_found then
> nNum_Proj:=0;
> END;
>
>
>

stocked procedure, very funny. It is stored procedure. The syntax is
declare
 numproj number;
begin
max_projet(numproj);
end;

in any tool

or
(in sql*plus)
variable numproj number
execute max_project(numproj)
print numproj

Hth,

Sybrand Bakker, Senior Oracle DBA Received on Wed Sep 19 2001 - 11:10:23 CDT

Original text of this message

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