Re: Select into - Mailing list pgsql-sql

From Bruce Momjian
Subject Re: Select into
Date
Msg-id 200112060410.fB64A7X08496@candle.pha.pa.us
Whole thread Raw
In response to Select into  ("Christopher Kings-Lynne" <chriskl@familyhealth.com.au>)
List pgsql-sql
> Hi All,
> 
> Is it possible to insert into a table based on a select from another table?
> 
> The docs for SELECT INTO and like seem to imply you can only create a table
> based on a select, not append to an existing table.

Sure, do INSERT INTO ... SELECT.  

--  Bruce Momjian                        |  http://candle.pha.pa.us pgman@candle.pha.pa.us               |  (610)
853-3000+  If your life is a hard drive,     |  830 Blythe Avenue +  Christ can be your backup.        |  Drexel Hill,
Pennsylvania19026
 


pgsql-sql by date:

Previous
From: "Christopher Kings-Lynne"
Date:
Subject: Select into
Next
From: "Esger Abbink"
Date:
Subject: Re: need some help understanding sloq query