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: newbie pl/sql question

Re: newbie pl/sql question

From: Steve Davidson <davidson_at_conceptualintegrity.com>
Date: 2000/08/06
Message-ID: <398DD670.B0E632B1@conceptualintegrity.com>#1/1

marc bautis wrote:

> I tried running the following script at a sqlplus command line
>
> CREATE OR REPLACE PROCEDURE InsertToBaseball AS
>
> v_HITTER varchar2(255) := 'John';
> v_PITCHER varchar2(255) := 'Richard';
>
> BEGIN
>
> INSERT INTO baseball(batter, pitcher) values (v_HITTER, v_PITCHER);
>
> END InsertToBaseball;
>
> when i execute this i get a message saying Warning: Procedure created
> with compilation errors.
>
> Does this mean that the procedure was created? How can I get a more
> detailed message of what the compilation errors were
>

Yes. But it failed compilation. Issue the command 'show err' from the sql prompt. It will give you the reason for the compile error.

> Can I run this procedure by calling: Execute InsertToBaseball at the
> command line

Yes....You need to modify your syntax to pass parameters. execute InsertToBaseball(parm1, parm2);

>
>
> Is there an equivalent to a DESCRIBE which i can do on procedures

don't know...sorry.

>
>
> Thanks,
> Marc
>
> Sent via Deja.com http://www.deja.com/
> Before you buy.
Received on Sun Aug 06 2000 - 00:00:00 CDT

Original text of this message

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