CREATE TABLE AS... syntax?

From: "Dr(dot) Evil" <drevil(at)sidereal(dot)kz>
To: pgsql-general(at)postgresql(dot)org
Subject: CREATE TABLE AS... syntax?
Date: 2001-04-25 22:45:38
Message-ID: 20010425224538.23078.qmail@sidereal.kz
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Len Morgan 2001-04-26 03:28:43 Re: CREATE TABLE AS... syntax?
Previous Message Oliver Elphick 2001-04-25 22:19:08 Re: Newbie struggling to set $PGDATA