Why LIMIT and OFFSET are commutative

Поиск
Список
Период
Сортировка
От Andrus
Тема Why LIMIT and OFFSET are commutative
Дата
Msg-id fic6qu$sn9$1@news.hub.org
обсуждение исходный текст
Список pgsql-general
I found that

SELECT * FROM foo
ORDER BY bar
OFFSET n
LIMIT m

and

SELECT * FROM foo
ORDER BY bar
LIMIT m
OFFSET n

produce always same results.

Why ?
OFFSET and LIMIT operations are NOT commutative in general.

Andrus.



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

Предыдущее
От: Lew
Дата:
Сообщение: Re: Error while compiling PostgreSQL with Java
Следующее
От: Peter Bauer
Дата:
Сообщение: System Load analyze