Received: from candle.pha.pa.us (216-55-132-35.dialup.tnt01.san-diego.abac.net [216.55.132.35]) by postgresql.org (8.11.3/8.11.4) with ESMTP id fB64A8m21615 for ; Wed, 5 Dec 2001 23:10:08 -0500 (EST) (envelope-from pgman@candle.pha.pa.us) Received: (from pgman@localhost) by candle.pha.pa.us (8.11.6/8.10.1) id fB64A7X08496; Wed, 5 Dec 2001 23:10:07 -0500 (EST) From: Bruce Momjian Message-Id: <200112060410.fB64A7X08496@candle.pha.pa.us> Subject: Re: Select into In-Reply-To: "from Christopher Kings-Lynne at Dec 6, 2001 11:01:54 am" To: Christopher Kings-Lynne Date: Wed, 5 Dec 2001 23:10:07 -0500 (EST) CC: pgsql-sql@postgresql.org X-Mailer: ELM [version 2.4ME+ PL90 (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII X-Archive-Number: 200112/65 X-Sequence-Number: 5888 > 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, Pennsylvania 19026