ORDER BY ????

Started by Marcin Wasilewskialmost 25 years ago2 messages
#1Marcin Wasilewski
marcingrupy@poczta.onet.pl

hello everybody,
Can you help me?

I have POSTGRESQL 7.0.3,
I try to create simple view by typing.

create view "xx" as select "aa.yy", "bb.yy" from "yy" order by "bb.yy"

the problem is that parameter order is not implemented with create view.
so how can I create such simple query??

Best regards
Marcin

#2Stephan Szabo
sszabo@megazone23.bigpanda.com
In reply to: Marcin Wasilewski (#1)
Re: ORDER BY ????

On Wed, 11 Apr 2001, Marcin Wasilewski wrote:

hello everybody,
Can you help me?

I have POSTGRESQL 7.0.3,
I try to create simple view by typing.

create view "xx" as select "aa.yy", "bb.yy" from "yy" order by "bb.yy"

the problem is that parameter order is not implemented with create view.
so how can I create such simple query??

You probably want the order by on the select queries on "xx". I
believe order bys are only legal on cursor creation and direct select
statements.