Re: SQL statement to copy a result set to create another table

Поиск
Список
Период
Сортировка
От YC Nyon
Тема Re: SQL statement to copy a result set to create another table
Дата
Msg-id 005d01c28b8c$fdedfd30$5340baca@gis
обсуждение исходный текст
Ответы Re: SQL statement to copy a result set to create another table
Re: SQL statement to copy a result set to create another table
Список 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 по дате отправления:

Предыдущее
От: "von Schwerdtner, Thomas (GXS, FPI)"
Дата:
Сообщение: Re: Can't add records
Следующее
От: Bruno Wolff III
Дата:
Сообщение: Re: SQL statement to copy a result set to create another table