From: Mike Darretta <michael.darretta.ctr@metnet.navy.mil>
To: pgsql-admin@postgresql.org
Subject: Migrating Data Between PG Tables
Date: Tue, 05 Oct 2004 13:13:54 -0700
Message-ID: <41630082.4090802@metnet.navy.mil> (raw)
In-Reply-To: <200410050159.i951xOH02113@candle.pha.pa.us>
References: <200410050159.i951xOH02113@candle.pha.pa.us>
Does anyone have a suggestion on the best way to migrate data between
two slightly different tables? For example:
Table A
--------
id : integer
name : string
desc : string
Table B
--------
id : integer
name : string
date : date
summary : string
In this example, I would like to copy all the data from Table A into B,
using the desc column to populate the summary column.
Thanks,
Mike
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: michael.darretta.ctr@metnet.navy.mil
Subject: Re: Migrating Data Between PG Tables
In-Reply-To: <41630082.4090802@metnet.navy.mil>
References: <200410050159.i951xOH02113@candle.pha.pa.us> <41630082.4090802@metnet.navy.mil>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox