Thank you guys.
Alvaro your idea works tha way I wanted. Why didn't I think about it ? :)
regards
mk
no, you can use CONTINUE only in loop. When you wont ignore exception,
just do nothing
For example, the following two fragments of code are equivalent:
BEGIN
y := x / 0;
EXCEPTION
WHEN division_by_zero THEN
NULL; -- ignore the error
END;
BEGIN
Marcin Krawczyk escribió:
> Hi all. Can anyone tell me if there's a way to use CONTINUE clause outside
> the loop ?
> An example :
>
> FOR a IN SELECT * FROM xxx
> LOOP
>
> INSERT INTO yyy VALUES (a.***, ..)
>
> END LOOP;
>
> EXCEPTION WHEN unique_violation THEN CONTINUE;
Try something like th
Hi all. Can anyone tell me if there's a way to use CONTINUE clause outside
the loop ?
An example :
FOR a IN SELECT * FROM xxx
LOOP
INSERT INTO yyy VALUES (a.***, ..)
END LOOP;
EXCEPTION WHEN unique_violation THEN CONTINUE;
I get an error saying I can't use CONTINUE outside of a loop. Is there