pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Jaime Casanova <systemguards@gmail.com>
To: Mark Fenbers <Mark.Fenbers@noaa.gov>
Cc: PostgreSQL - SQL <pgsql-sql@postgresql.org>
Subject: Re: APPEND INTO?
Date: Thu, 1 Dec 2005 10:32:02 -0500
Message-ID: <c2d9e70e0512010732h698b5667ueddb7338ab7a1fa1@mail.gmail.com> (raw)
In-Reply-To: <438F074A.3040004@noaa.gov>
References: <438F074A.3040004@noaa.gov>

On 12/1/05, Mark Fenbers <Mark.Fenbers@noaa.gov> wrote:
> I want to SELECT INTO mytable WHERE (criteria are met), except that I
> want to APPEND into an existing table the rows that are selected,
> instead of creating a new table (which SELECT INTO will do).  How can
> this be done?
>
> (Is this what the "FOR UPDATE OF tablename" clause is for?)
>
> Mark
>

INSERT INTO table SELECT ....

--
regards,
Jaime Casanova
(DBA: DataBase Aniquilator ;)



view thread (3+ messages)  latest in thread

Message-ID: <c2d9e70e0512010732h698b5667ueddb7338ab7a1fa1@mail.gmail.com>
Permalink:  ../c2d9e70e0512010732h698b5667ueddb7338ab7a1fa1@mail.gmail.com/
Also on:    postgresql.org/message-id/c2d9e70e0512010732h698b5667ueddb7338ab7a1fa1@mail.gmail.com

 · 

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: systemguards@gmail.com, Mark.Fenbers@noaa.gov
  Subject: Re: APPEND INTO?
  In-Reply-To: <c2d9e70e0512010732h698b5667ueddb7338ab7a1fa1@mail.gmail.com>

* 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