Got error on CREATE TABLE AS

Поиск
Список
Период
Сортировка
От Jeff Lu
Тема Got error on CREATE TABLE AS
Дата
Msg-id LIEBJAJMJFLPHGCPMEBGKEIPCEAA.jklcom@mindspring.com
обсуждение исходный текст
Ответ на Is there an internal timestamp on a table when it was created?  ("Jeff Lu" <jklcom@mindspring.com>)
Ответы Re: Got error on CREATE TABLE AS (+Bug?)  ("Command Prompt, Inc." <pgsql-general@commandprompt.com>)
Список pgsql-general
Hi,

I'm getting parser error at or near AS

when try to copy a table using CREATE TABLE AS

Here what I have in the sql statement

CREATE TABLE employee_backup (id text UNIQUE, lastname text, firstname text,
phone text) AS SELECT * FROM employee

Can some body tell me what is wrong with the sql statement?

Thank you


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

Предыдущее
От: Doug McNaught
Дата:
Сообщение: Re: Libpq coding assistance
Следующее
От: "Command Prompt, Inc."
Дата:
Сообщение: Re: Got error on CREATE TABLE AS (+Bug?)