Re: Copying data from one table to another - how to specify fields?

From: Alexander Farber <alexander(dot)farber(at)gmail(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Copying data from one table to another - how to specify fields?
Date: 2011-03-15 21:40:34
Message-ID: AANLkTinSwR10469VM20M1asWpYEENy9XKOwxqnYPAwBp@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Thank you all for the replies!

On Wed, Mar 9, 2011 at 7:01 PM, David Johnston <polobo(at)yahoo(dot)com> wrote:
> SELECT username, count(username) FROM phpbb_users
> GROUP BY username
> HAVING count(username) > 1;
>
> If anything shows up then (phpbb_users .username) is not a unique field but
> you are trying to insert it into one that is (drupal_users.uid)
>

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Alexander Farber 2011-03-15 21:42:31 Re: A join of 2 tables with sum(column) > 30
Previous Message Vibhor Kumar 2011-03-15 21:36:49 Re: Enable/Disable Triggers