Re: Postgres 8.0 -> BEGIN EXCEPTION END Syntax????

Поиск
Список
Период
Сортировка
От Gaetano Mendola
Тема Re: Postgres 8.0 -> BEGIN EXCEPTION END Syntax????
Дата
Msg-id 411D4690.2080304@bigfoot.com
обсуждение исходный текст
Ответ на Postgres 8.0 -> BEGIN EXCEPTION END Syntax????  (Daniel Schuchardt <daniel_schuchardt@web.de>)
Список pgsql-general
Daniel Schuchardt wrote:

 > Hi ,
 >
 > can anybody tell me the postgres - syntax for begin excepion end if I
 > want to ignore the error?
 >
 > BEGIN
 >  exception ...
 > EXCEPTION
 >  WHEN OTHERS THEN ?????????????what to write for do nothing?????????
 > END;
 >
 > in oracle it's
 >
 > WHEN OTHERS THEN null; but this syntax doesn't work in postgres.

This for sure is not the best solution, but try:

WHEN OTHERS THEN PERFORM 0;



Regards
Gaetano Mendola




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

Предыдущее
От: j0rd1 adame
Дата:
Сообщение: Re: [ok] Re: psql wishlist: value completion
Следующее
От: "gnari"
Дата:
Сообщение: Re: Autoincremental value