Re: Unexpected behaviour of ORDER BY and LIMIT/OFFSET

Поиск
Список
Период
Сортировка
От Ognjen Blagojevic
Тема Re: Unexpected behaviour of ORDER BY and LIMIT/OFFSET
Дата
Msg-id 4A0C6F4B.4040803@etf.bg.ac.yu
обсуждение исходный текст
Ответ на Re: Unexpected behaviour of ORDER BY and LIMIT/OFFSET  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-novice
Tom Lane wrote:
> "ORDER BY id_dept" isn't a unique sort key.  In this example the
> implementation is free to return Meggie and Marge in either order,
> and the ordering can indeed vary depending on the LIMIT/OFFSET values.
>
> Moral: don't use LIMIT/OFFSET without a fully specified sort order.

Thank you, Tom, for your prompt response.

Regards,
Ognjen

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

Предыдущее
От: JORGE MALDONADO
Дата:
Сообщение: INSERTING "NEW LINES" IN A SELECT STATEMENT
Следующее
От: Ognjen Blagojevic
Дата:
Сообщение: Re: INSERTING "NEW LINES" IN A SELECT STATEMENT