Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> Re: Trouble coverting a Procedure into a "STORED" procedure
Andy Hassall wrote:
> On Wed, 04 Feb 2004 23:12:51 -0800, Daniel Morgan <damorgan_at_x.washington.edu>
> wrote:
>
>
>>remove DECLARE it does not belong in any proc or function
What I mean is very simply put by trying these two examples:
CREATE OR REPLACE PROCEDURE x IS
i VARCHAR2(10);
BEGIN
NULL;
END x;
/
CREATE OR REPLACE PROCEDURE x IS
DECLARE i VARCHAR2(10);
BEGIN
NULL;
END x;
/
One is valid syntax. The other is not.
-- Daniel Morgan http://www.outreach.washington.edu/ext/certificates/oad/oad_crs.asp http://www.outreach.washington.edu/ext/certificates/aoa/aoa_crs.asp damorgan_at_x.washington.edu (replace 'x' with a 'u' to reply)Received on Fri Feb 06 2004 - 19:44:22 CST
![]() |
![]() |