pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Steve Wampler <swampler@noao.edu>
To: Postgres-SQL <pgsql-sql@postgresql.org>
Subject: Copying rows between tables?
Date: Tue, 13 Jan 2004 09:23:48 -0700
Message-ID: <1074011028.18994.18.camel@weaver.tuc.noao.edu> (raw)


I know I can select from one table into a new table, but is
there a way to select from one table into an existing table
(aside from copying everything to a file, editing the file
and then copying from that file)?  Without destroying existing
entries, of course...

I have an application where old records are archived into
'archive' tables.  Occasionally there is a need to copy
some of these old records into the 'active' table.

Thanks for any pointers!
Steve
-- 
Steve Wampler -- swampler@noao.edu
The gods that smiled on your birth are now laughing out loud.



view thread (4+ messages)  latest in thread

Message-ID: <1074011028.18994.18.camel@weaver.tuc.noao.edu>
Permalink:  ../1074011028.18994.18.camel@weaver.tuc.noao.edu/
Also on:    postgresql.org/message-id/1074011028.18994.18.camel@weaver.tuc.noao.edu

 · 

reply

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 using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: swampler@noao.edu
  Subject: Re: Copying rows between tables?
  In-Reply-To: <1074011028.18994.18.camel@weaver.tuc.noao.edu>

* 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