Re: CREATE TABLE AS and ORDER BY

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Joy Chuang <hxc0850(at)omega(dot)uta(dot)edu>
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: CREATE TABLE AS and ORDER BY
Date: 2001-02-06 16:05:15
Message-ID: 25163.981475515@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Joy Chuang <hxc0850(at)omega(dot)uta(dot)edu> writes:
> But, it returns error message "ERROR: parser: parse error at or near
> "order"". Does "create table as" support "order by" inside of it?

Evidently not.

> I am using PostgreSQL 6.5.3.

It seems to work in 7.0 and later.

regards, tom lane

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Tom Lane 2001-02-06 16:16:01 Re: [SQL] PL/PGSQL function with parameters
Previous Message Brice Ruth 2001-02-06 16:01:35 Re: SQL Join - MySQL/PostgreSQL difference?