CREATE TABLE AS and ORDER BY

Поиск
Список
Период
Сортировка
От Joy Chuang
Тема CREATE TABLE AS and ORDER BY
Дата
Msg-id 3A7F5AF9.B23DF42F@omega.uta.edu
обсуждение исходный текст
Ответы Re: CREATE TABLE AS and ORDER BY  (Tom Lane <tgl@sss.pgh.pa.us>)
Re: CREATE TABLE AS and ORDER BY  (Jie Liang <jliang@ipinc.com>)
Список pgsql-sql
Hi,

I tried to use CREATE TABLE AS and ORDER BY.  The query is as followed:

create table freshhr21 as
select e.studentid, u.hoursxfer
from enrollmentstatus e, undergradclass u
where e.studentid = u.studentid and e.classtd = '1'
order by u.hoursxfer

But, it returns error message "ERROR:  parser: parse error at or near
"order"".  Does "create table as" support "order by" inside of it?

I am using PostgreSQL 6.5.3.

Thank you.

Joy Chuang



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

Предыдущее
От: ""
Дата:
Сообщение: Packages to Install
Следующее
От: "Sebastian --[ www.flashhilfe.de ]--"
Дата:
Сообщение: Search