Re: insert woes

From: Richard Huxton <dev(at)archonet(dot)com>
To: tony <tony(at)tgds(dot)net>
Cc: postgres list <pgsql-general(at)postgresql(dot)org>
Subject: Re: insert woes
Date: 2005-04-05 08:43:29
Message-ID: 42524FB1.401@archonet.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Andrew Dunstan 2005-04-05 08:44:17 Re: [GENERAL] plPHP in core?
Previous Message tony 2005-04-05 08:15:47 insert woes