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

Home -> Community -> Mailing Lists -> Oracle-L -> Re: Problem with Create Procedure Syntax

Re: Problem with Create Procedure Syntax

From: Rachel Carmichael <carmichr_at_hotmail.com>
Date: Tue, 30 May 2000 09:01:41 GMT
Message-Id: <10513.107063@fatcity.com>


you need a "/" at the very end....

Rachel

>From: Dax Mickelson <dax.mickelson_at_lightcom.net>
>Reply-To: ORACLE-L_at_fatcity.com
>To: Multiple recipients of list ORACLE-L <ORACLE-L_at_fatcity.com>
>Subject: Problem with Create Procedure Syntax
>Date: Mon, 29 May 2000 19:23:54 -0800
>
>What is wrong with this statement?
>
>create procedure add_comm(emp_id number, new_comm number) as
>begin
>update emp set comm=comm+new_comm where empno=emp_id;
>end add_comm;
>
>I have tried to create this and this is what I get:
>
>SQL> create procedure add_comm(emp_id number, new_comm number) as
> 2 begin
> 3 update emp set comm=comm+new_comm where empno=emp_id;
> 4 end add_comm;
> 5
> 6 .
>SQL>
>
>I have to use the period to get back to the SQL prompt.
>
>What am I doing wrong. I get no creating the procedure (which I don't
>think it is creating the procedure) and if I try to use the created
>procedure I get this:
>
>SQL> execute add_comm(1234,456);
>BEGIN add_comm(1234,456); END;
>
> *
>ERROR at line 1:
>ORA-06550: line 1, column 7:
>PLS-00201: identifier 'ADD_COMM' must be declared
>ORA-06550: line 1, column 7:
>PL/SQL: Statement ignored
>
>
>SQL>
>
>--------------------------------------------------------------------------------------
>Dax Mickelson -- CCNA, CCAI, OCP/DBO, CNA
>
>____EFGH_JKLM___QRSTUVWXYZ
>-------------------------------------------------------------------------------------
>-
>
>--
>Author: Dax Mickelson
> INET: dax.mickelson_at_lightcom.net
>
>Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051
>San Diego, California -- Public Internet access / Mailing Lists
>--------------------------------------------------------------------
>To REMOVE yourself from this mailing list, send an E-Mail message
>to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in
>the message BODY, include a line containing: UNSUB ORACLE-L
>(or the name of mailing list you want to be removed from). You may
>also send the HELP command for other information (like subscribing).



Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com Received on Tue May 30 2000 - 04:01:41 CDT

Original text of this message

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