Re: cannot get CREATE TABLE AS to work

Поиск
Список
Период
Сортировка
От Josh Berkus
Тема Re: cannot get CREATE TABLE AS to work
Дата
Msg-id web-22755@davinci.ethosmedia.com
обсуждение исходный текст
Ответ на cannot get CREATE TABLE AS to work  ("Creager, Robert S" <CreagRS@LOUISVILLE.STORTEK.COM>)
Список pgsql-sql
Robert,
I can't help you with your performance problem, but I can help you with
CREATE TABLE AS.  You've mistaken the syntax; CREATE TABLE AS does not
use column definitions other than the query.  Thus, the correct syntax
should be:


> create table observationsII
> AS select o.ra, o.decl, o.mag, o.smag, o.file_id from
> observations o;


-Josh Berkus

______AGLIO DATABASE SOLUTIONS___________________________                                      Josh Berkus Complete
informationtechnology      josh@agliodbs.com  and data management solutions       (415) 565-7293 for law firms, small
businesses       fax 621-2533   and non-profit organizations.      San Francisco
 


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

Предыдущее
От: "Josh Berkus"
Дата:
Сообщение: Re: List Concatination
Следующее
От: Josh Berkus
Дата:
Сообщение: Re: cannot get CREATE TABLE AS to work