Re: select into... - Mailing list pgsql-admin

From Scott Marlowe
Subject Re: select into...
Date
Msg-id dcc563d10903161612t4ee3fe37k776764ecfc7dbed4@mail.gmail.com
Whole thread Raw
In response to select into...  ("Tena Sakai" <tsakai@gallo.ucsf.edu>)
List pgsql-admin
On Mon, Mar 16, 2009 at 5:08 PM, Tena Sakai <tsakai@gallo.ucsf.edu> wrote:
> Hi Everybody,
>
> I want to execute a query below:
>
>   select *
>     into my_table
>     from old_table
>    where (some_condition);
>
> The trouble is that the manual page states that this would
> "SELECT INTO creates a new table and fills it with data
> computed by a query."
>
> What I want is to append my_table.  Is there any way to
> get postgres to do what I want done?

You want insert:

insert into my_table select yada from old_table;

pgsql-admin by date:

Previous
From: "Tena Sakai"
Date:
Subject: select into...
Next
From: "Kevin Grittner"
Date:
Subject: Re: select into...