From: Michael Davis <mdavis@sevainc.com>
To: 'Joseph Syjuco' <joseph@asti.dost.gov.ph>
To: pgsql-sql@postgresql.org <pgsql-sql@postgresql.org>
Subject: Re:
Date: Mon, 3 Sep 2001 10:29:12 -0600
Message-ID: <01C13463.46CD2260.mdavis@sevainc.com> (raw)
Try:
Create table table1(field1,field2) as (select field1, field2 from table2);
-----Original Message-----
From: Joseph Syjuco [SMTP:joseph@asti.dost.gov.ph]
Sent: Monday, September 03, 2001 3:03 AM
To: pgsql-sql@postgresql.org
Subject:
im new in postgresql (actually came from SQL Server) and i was trying a
script like this
insert into table1(field1,field2) values (select field1, field2 from table
2);
i dont know if this is possible (inserting a set of entries via resultset
from a select stmt in one command). If anyone has any answers, or
workarounds pls do email me
Thanks
---------------------------(end of broadcast)---------------------------
TIP 6: Have you searched our list archives?
http://www.postgresql.org/search.mpl
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-sql@postgresql.org
Cc: mdavis@sevainc.com, joseph@asti.dost.gov.ph
Subject: Re:
In-Reply-To: <01C13463.46CD2260.mdavis@sevainc.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