CREATE TABLE AS... syntax?

Поиск
Список
Период
Сортировка
От Dr. Evil
Тема CREATE TABLE AS... syntax?
Дата
Msg-id 20010425224538.23078.qmail@sidereal.kz
обсуждение исходный текст
Ответы RE: CREATE TABLE AS... syntax?  ("Tamsin" <tg_mail@bryncadfan.co.uk>)
Список pgsql-general
I'm trying to use CREATE TABLE AS under 7.03.  There are no
examples in the guide, so I tried a few things:

CREATE TABLE foo (test INT4) AS SELECT number FROM account;

and

CREATE TABLE foo (test INT4) AS number FROM account;

and both of them give ERROR:  parser: parse error at or near "as".
Any tips on how to use this?

Thanks

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

Предыдущее
От: "Oliver Elphick"
Дата:
Сообщение: Re: Newbie struggling to set $PGDATA
Следующее
От: "Len Morgan"
Дата:
Сообщение: Re: CREATE TABLE AS... syntax?