1
0
mirror of https://github.com/postgres/postgres.git synced 2025-12-07 12:02:30 +03:00

Remove LIMIT #,# and suggest LIMIT # OFFSET #, per mailing list discussion.

This commit is contained in:
Bruce Momjian
2001-10-20 02:55:39 +00:00
parent 424d9389d6
commit f363b3177d
6 changed files with 14 additions and 15 deletions

View File

@@ -98,7 +98,7 @@ SELECT ''::text AS five, unique1, unique2, stringu1
SELECT ''::text AS five, unique1, unique2, stringu1
FROM onek
ORDER BY unique1 LIMIT 900, 5;
ORDER BY unique1 LIMIT 5 OFFSET 900;
five | unique1 | unique2 | stringu1
------+---------+---------+----------
| 900 | 913 | QIAAAA

View File

@@ -29,4 +29,4 @@ SELECT ''::text AS five, unique1, unique2, stringu1
ORDER BY unique1 OFFSET 990 LIMIT 5;
SELECT ''::text AS five, unique1, unique2, stringu1
FROM onek
ORDER BY unique1 LIMIT 900, 5;
ORDER BY unique1 LIMIT 5 OFFSET 900;