exception handling and CONTINUE

Поиск
Список
Период
Сортировка
От Marcin Krawczyk
Тема exception handling and CONTINUE
Дата
Msg-id 95f6bf9b0807080524i3a1f1c36nda2d0c89c2abdd56@mail.gmail.com
обсуждение исходный текст
Ответы Re: exception handling and CONTINUE  (Alvaro Herrera <alvherre@commandprompt.com>)
Re: exception handling and CONTINUE  ("Pavel Stehule" <pavel.stehule@gmail.com>)
Список pgsql-sql
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 a way around this ?
 
regards
mk

В списке pgsql-sql по дате отправления:

Предыдущее
От: "Scott Marlowe"
Дата:
Сообщение: Re: how to control the execution plan ?
Следующее
От: Alvaro Herrera
Дата:
Сообщение: Re: exception handling and CONTINUE