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-09 14:54:38
Message-ID: AANLkTimi-7v-PqA7cMSL08p8-WxxAahXwXGhd=Yzg0bG@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Oh ok, found it:

# select one.username, one.user_id, two.user_id from phpbb_users one,
phpbb_users two where two.username=one.username and two.user_id <>
one.user_id;
username | user_id | user_id
----------+---------+---------
Вячеслав | 7564 | 421
Вячеслав | 421 | 7564
(2 rows)

Sorry!

In response to

Browse pgsql-general by date

  From Date Subject
Next Message David Johnston 2011-03-09 15:02:50 Re: Copying data from one table to another - how to specify fields?
Previous Message Alexander Farber 2011-03-09 14:52:06 Re: Copying data from one table to another - how to specify fields?