From: | Michael Davis <mdavis(at)sevainc(dot)com> |
---|---|
To: | "'Joseph Syjuco'" <joseph(at)asti(dot)dost(dot)gov(dot)ph>, "pgsql-sql(at)postgresql(dot)org" <pgsql-sql(at)postgresql(dot)org> |
Subject: | Re: |
Date: | 2001-09-03 16:29:12 |
Message-ID: | 01C13463.46CD2260.mdavis@sevainc.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-sql |
Try:
Create table table1(field1,field2) as (select field1, field2 from table2);
-----Original Message-----
From: Joseph Syjuco [SMTP:joseph(at)asti(dot)dost(dot)gov(dot)ph]
Sent: Monday, September 03, 2001 3:03 AM
To: pgsql-sql(at)postgresql(dot)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?
From | Date | Subject | |
---|---|---|---|
Next Message | Jari Aalto | 2001-09-03 16:34:33 | GRANT ALL ON TO GROUP failure |
Previous Message | Joseph Syjuco | 2001-09-03 09:02:36 |