Re: insert woes

Поиск
Список
Период
Сортировка
От Richard Huxton
Тема Re: insert woes
Дата
Msg-id 42524FB1.401@archonet.com
обсуждение исходный текст
Ответ на insert woes  (tony <tony@tgds.net>)
Ответы Re: insert woes  (tony <tony@tgds.net>)
Список pgsql-general
tony wrote:
> Hi,
>
> I am migrating data from one data structure to another and having
> problems writing a correct INSERT INTO blah SELECT ... from existing
> tables
>
> I have contact, my addresses (each contact can have several addresses)
> and address (each address can have several contacts).
>
> I am getting unique key address_id errors despite using a DISTINCT ON
> clause in my SELECT so I am doing something wrong

Copies of the queries in question please. Also, cut the INSERT INTO off
the front and have a look for any duplicates.

--
   Richard Huxton
   Archonet Ltd

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

Предыдущее
От: tony
Дата:
Сообщение: insert woes
Следующее
От: Martijn van Oosterhout
Дата:
Сообщение: Re: [HACKERS] plPHP in core?