Re: SQL statement to copy a result set to create another table - Mailing list pgsql-novice

From YC Nyon
Subject Re: SQL statement to copy a result set to create another table
Date
Msg-id 005d01c28b8c$fdedfd30$5340baca@gis
Whole thread Raw
Responses Re: SQL statement to copy a result set to create another table
Re: SQL statement to copy a result set to create another table
List pgsql-novice
I want to create a new table based on an earlier result set from a SQL
query.
For example;
Query 1:
Select * from test where id >20

This will give me a result that 10 records found.
I would like to create a new table and insert these 10 records.
Also, I looking into views. would that be a better choice. The application
let users store their data via PHP.

Thanks
Nyon



pgsql-novice by date:

Previous
From: "von Schwerdtner, Thomas (GXS, FPI)"
Date:
Subject: Re: Can't add records
Next
From: Bruno Wolff III
Date:
Subject: Re: SQL statement to copy a result set to create another table