create table as problem

Поиск
Список
Период
Сортировка
От garry saddington
Тема create table as problem
Дата
Msg-id 1158352955.30096.3.camel@localhost
обсуждение исходный текст
Ответы Re: create table as problem  (Michael Fuhr <mike@fuhr.org>)
Список pgsql-general
I am getting a syntax error at or near 'as' in this method, can anyone
help?

create table iclasses
(classid serial,
subject text,
year text,
groups text,
teacher text,
set text
)
as select distinct subject,year,groups,teacher,set from interimclasses

I need to make a new table with a classid. Any comments are more than
welcome.
regards
garry


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

Предыдущее
От: zeljko
Дата:
Сообщение: Re: compressed protocol
Следующее
От: Michael Fuhr
Дата:
Сообщение: Re: create table as problem