Re: new table with a select

Поиск
Список
Период
Сортировка
От Julien Cigar
Тема Re: new table with a select
Дата
Msg-id 4E561A6A.60807@ulb.ac.be
обсуждение исходный текст
Ответ на new table with a select  (ppdcc@sapo.pt)
Ответы Re: new table with a select  (Florian Weimer <fweimer@bfk.de>)
Список pgsql-sql
create table foo as select * from bar;

just add "where 1=2" if you just want the schema

On 08/25/2011 11:44, ppdcc@sapo.pt wrote:
>
>
> Hello to all,
>
>
> Can anybody tell me the sql instruction to create a new table with a
> select of other table?
>
> I need to create a new table based on paralell of a table of lines. Can
> anybody post to me a example?
>
> Can?t be a buffer, must be lines.
>
> Thanks
>
>
>
>
>
>
>


--
No trees were killed in the creation of this message.
However, many electrons were terribly inconvenienced.

Вложения

В списке pgsql-sql по дате отправления:

Предыдущее
От: ppdcc@sapo.pt
Дата:
Сообщение: new table with a select
Следующее
От: Florian Weimer
Дата:
Сообщение: Re: new table with a select