Re: PL/SQL procedure problem

From: Loyal Barber <lbarber_at_ix.netcom.com>
Date: 1996/12/03
Message-ID: <32A50B1D.11D0_at_ix.netcom.com>#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

change "END c1" to "END LOOP;"
The "Input truncated to 24 characters" usually means you don't have a line feed
on your last line. It is not an error.

Loyal

-- 
New Sears Driving School Jingle:
Come See the Scary Side of Sears . . .
Received on Tue Dec 03 1996 - 00:00:00 CET

Original text of this message