Re: APPEND INTO?

From: Jaime Casanova <systemguards(at)gmail(dot)com>
To: Mark Fenbers <Mark(dot)Fenbers(at)noaa(dot)gov>
Cc: PostgreSQL - SQL <pgsql-sql(at)postgresql(dot)org>
Subject: Re: APPEND INTO?
Date: 2005-12-01 15:32:02
Message-ID: c2d9e70e0512010732h698b5667ueddb7338ab7a1fa1@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

On 12/1/05, Mark Fenbers <Mark(dot)Fenbers(at)noaa(dot)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 ;)

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Tom Lane 2005-12-01 15:32:08 Re: APPEND INTO?
Previous Message Mark Fenbers 2005-12-01 14:23:06 APPEND INTO?