From: Fernando Arancibia <farancibia@iswitch.cl>
To: Tena Sakai <tsakai@gallo.ucsf.edu>
Cc: pgsql-admin@postgresql.org
Subject: Re: select into...
Date: Mon, 16 Mar 2009 19:13:16 -0400
Message-ID: <9c7ce58a0903161613m1bf644a2te4efc5a5680abb76@mail.gmail.com> (raw)
In-Reply-To: <FE44E0D7EAD2ED4BB2165071DB8E328C0378F7E6@egcrc-ex01.egcrc.org>
References: <FE44E0D7EAD2ED4BB2165071DB8E328C0378F7E6@egcrc-ex01.egcrc.org>
Hi, try
insert into my_table select * from old_table where (some_condition);
bye
Fernando.
2009/3/16 Tena Sakai <tsakai@gallo.ucsf.edu>
> 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?
>
> Thank you in advance.
>
> Regards,
>
> Tena Sakai
> tsakai@gallo.ucsf.edu
>
>
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-admin@postgresql.org
Cc: farancibia@iswitch.cl, tsakai@gallo.ucsf.edu
Subject: Re: select into...
In-Reply-To: <9c7ce58a0903161613m1bf644a2te4efc5a5680abb76@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