Re: PL/SQL procedure problem

From: Ron Jorissen <para3_at_xs4all.nl>
Date: 1996/11/28
Message-ID: <329D4818.294_at_xs4all.nl>#1/1


Gary G wrote:
>
> I have tried to create a procedure, and can't seem to be able to compile
> it. At this point I've tried just about everything, and not sure if I'm
> missing an obvious error in script, or the problem is at the back end. Here
> is a bare bones version of the needed procedure:
>
> CREATE OR REPLACE PROCEDURE label AS
>
> CURSOR c1 IS SELECT apbcons_addr_name,
> from apbcons;
>
> BEGIN
> FOR c1rec IN c1 LOOP
> INSERT INTO label_run (name)
> VALUES (c1rec.apbcons_addr_name);
> END c1;
> END;
> /
>
> -- and this is the message I get at SQL prompt
>
> >Warning: Procedure created with compilation errors.
>
> real: 160
> Input truncated to 24 characters
>
> Any thoughts on this matter?
> Thanks
> Gary
If you type in the command "show errors" in SQL*Plus it will show you the compilation error.
But my guess is that you should change the line END c1; END LOOP; Received on Thu Nov 28 1996 - 00:00:00 CET

Original text of this message