How do I copy part of table from db1 to db2 (and rename the columns)?

From: Joost Kraaijeveld <J(dot)Kraaijeveld(at)Askesis(dot)nl>
To: Pgsql-sql(at)postgresql(dot)org, Pgsql-General <pgsql-general(at)postgresql(dot)org>
Subject: How do I copy part of table from db1 to db2 (and rename the columns)?
Date: 2005-08-31 10:00:30
Message-ID: 1125482430.9456.6.camel@Panoramix
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-sql

Hi,

I want to copy several columns of a source table from db1 to db2, and
create the target table and rename the columns in the process.

Is that possible in PostgresQL? If so, an example or url for such a
command /script would be appreciated...

TIA

Joost

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Kenneth Gonsalves 2005-08-31 10:15:49 Re: How do I copy part of table from db1 to db2 (and rename the columns)?
Previous Message Peter Arwanitis 2005-08-31 09:40:10 Searching for LTree dmoz-testdata

Browse pgsql-sql by date

  From Date Subject
Next Message Kenneth Gonsalves 2005-08-31 10:15:49 Re: How do I copy part of table from db1 to db2 (and rename the columns)?
Previous Message Michael Fuhr 2005-08-31 02:32:49 Re: [SQL] plpgsql question