Re: Order in CREATE VIEW

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Order in CREATE VIEW
Дата
Msg-id 13487.987235694@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Order in CREATE VIEW  ("Oliver Elphick" <olly@lfix.co.uk>)
Ответы Re: Order in CREATE VIEW  ("Oliver Elphick" <olly@lfix.co.uk>)
Список pgsql-general
"Oliver Elphick" <olly@lfix.co.uk> writes:
> 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.

This is indeed the pure-SQL attitude, but it may be worth pointing out
that Postgres 7.1 does allow ORDER BY in subselects and views anyway.

The main reason that that seems like a good idea (IMHO at least) is that
ORDER BY together with LIMIT allow you to select specific rows in ways
that are difficult to accomplish otherwise.

            regards, tom lane

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

Предыдущее
От: will trillich
Дата:
Сообщение: Re: Help on PGSQL
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Backend sent D message without prior T