CREATE TABLE AS... syntax? - Mailing list pgsql-general

From Dr. Evil
Subject CREATE TABLE AS... syntax?
Date
Msg-id 20010425224538.23078.qmail@sidereal.kz
Whole thread Raw
Responses RE: CREATE TABLE AS... syntax?
List 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 by date:

Previous
From: "Oliver Elphick"
Date:
Subject: Re: Newbie struggling to set $PGDATA
Next
From: "Len Morgan"
Date:
Subject: Re: CREATE TABLE AS... syntax?