Re: LIMIT within UNION?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: LIMIT within UNION?
Дата
Msg-id 9596.1031861899@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: LIMIT within UNION?  (Andrew Perrin <clists@perrin.socsci.unc.edu>)
Список pgsql-sql
Andrew Perrin <clists@perrin.socsci.unc.edu> writes:
> Interesting - this would count on the UNION including all cases in the
> first query before those in the second query. Are UNIONed records
> presented in any predictable order?

If you can use UNION ALL then this would be pretty safe to rely on.
If you must use UNION (to eliminate dups) then it won't work.
        regards, tom lane


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

Предыдущее
От: Andrew Perrin
Дата:
Сообщение: Re: LIMIT within UNION?
Следующее
От: Josh Berkus
Дата:
Сообщение: Re: LIMIT within UNION?