Skip site navigation (1) Skip section navigation (2)

Re: select into...

From: Fernando Arancibia <farancibia(at)iswitch(dot)cl>
To: Tena Sakai <tsakai(at)gallo(dot)ucsf(dot)edu>
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: select into...
Date: 2009-03-16 23:13:16
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-admin
Hi, try
insert into my_table select * from old_table where (some_condition);


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


pgsql-admin by date

Next:From: Tena SakaiDate: 2009-03-16 23:16:57
Subject: Re: select into...
Previous:From: Kevin GrittnerDate: 2009-03-16 23:13:07
Subject: Re: select into...

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group