Re: duplicate key violates unique constraint

Поиск
Список
Период
Сортировка
От Andrew Sullivan
Тема Re: duplicate key violates unique constraint
Дата
Msg-id 20080226162246.GA9865@crankycanuck.ca
обсуждение исходный текст
Ответ на Re: duplicate key violates unique constraint  ("Shavonne Marietta Wijesinghe" <shavonne.marietta@studioform.it>)
Ответы Re: duplicate key violates unique constraint  (Teemu Torma <teemu@torma.org>)
Список pgsql-sql
On Tue, Feb 26, 2008 at 05:05:01PM +0100, Shavonne Marietta Wijesinghe wrote:
> Thank you. I tried as you said. But i get a ERROR:  syntax error at or near 
> "INSERT" at character 9
> I don't see anything wrong with the code..

Well, except that there's no "EXCEPTION" statement in SQL?  I think your
correspondent was intending for this to be programmatic.  You can do what
you want with a subtransaction, though.  Look into savepoints in the manual.

A



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

Предыдущее
От: "Shavonne Marietta Wijesinghe"
Дата:
Сообщение: Re: duplicate key violates unique constraint
Следующее
От: Teemu Torma
Дата:
Сообщение: Re: duplicate key violates unique constraint