Re: Order in CREATE VIEW

From: "Oliver Elphick" <olly(at)lfix(dot)co(dot)uk>
To: "Marcin Wasilewski" <marcingrupy(at)poczta(dot)onet(dot)pl>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Order in CREATE VIEW
Date: 2001-04-14 06:23:51
Message-ID: 200104140623.f3E6NqU29861@linda.lfix.co.uk
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

"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??

A view creates a virtual table; there is no implicit ordering in a table,
so it follows that you should not be able to impose one in a view.

You seem to want to create a stored query, so why not use pgaccess to do
just that?

--
Oliver Elphick Oliver(dot)Elphick(at)lfix(dot)co(dot)uk
Isle of Wight http://www.lfix.co.uk/oliver
PGP: 1024R/32B8FAA1: 97 EA 1D 47 72 3F 28 47 6B 7E 39 CC 56 E4 C1 47
GPG: 1024D/3E1D0C1C: CA12 09E0 E8D5 8870 5839 932A 614D 4C34 3E1D 0C1C
========================================
"Be strong, and let your heart take courage, all you
who hope in the Lord." Psalm 31:24

Responses

Browse pgsql-general by date

  From Date Subject
Next Message will trillich 2001-04-14 07:08:05 Re: Order in CREATE VIEW
Previous Message Mike Mascari 2001-04-14 05:31:45 RE: Very slow query, Help please!