Re: select into...

From: "Tena Sakai" <tsakai(at)gallo(dot)ucsf(dot)edu>
To: "Fernando Arancibia" <farancibia(at)iswitch(dot)cl>
Cc: <pgsql-admin(at)postgresql(dot)org>
Subject: Re: select into...
Date: 2009-03-16 23:31:10
Message-ID: FE44E0D7EAD2ED4BB2165071DB8E328C0378F7E8@egcrc-ex01.egcrc.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Thank you, Fernando.
Thank you, Kevin.

Regards,

Tena Sakai
tsakai(at)gallo(dot)ucsf(dot)edu

-----Original Message-----
From: Fernando Arancibia [mailto:farancibia(at)iswitch(dot)cl]
Sent: Mon 3/16/2009 4:13 PM
To: Tena Sakai
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: [ADMIN] select into...

Hi, try
insert into my_table select * from old_table where (some_condition);

bye
Fernando.

2009/3/16 Tena Sakai <tsakai(at)gallo(dot)ucsf(dot)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(at)gallo(dot)ucsf(dot)edu
>
>

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Nagalingam, Karthikeyan 2009-03-17 05:15:55 Re: deployment query
Previous Message Tena Sakai 2009-03-16 23:16:57 Re: select into...