Skip to content

Commit fda21aa

Browse files
committed
Docs: clarify description of LIMIT/OFFSET behavior.
Section 7.6 was a tad confusing because it specified what LIMIT NULL does, but neglected to do the same for OFFSET NULL, making this look like perhaps a special case or a wrong restatement of the bit about LIMIT ALL. Wordsmith a bit while at it. Per bug #14084.
1 parent 22989a8 commit fda21aa

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

doc/src/sgml/queries.sgml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1794,16 +1794,19 @@ SELECT <replaceable>select_list</replaceable>
17941794

17951795
<para>
17961796
If a limit count is given, no more than that many rows will be
1797-
returned (but possibly less, if the query itself yields less rows).
1797+
returned (but possibly fewer, if the query itself yields fewer rows).
17981798
<literal>LIMIT ALL</> is the same as omitting the <literal>LIMIT</>
1799-
clause.
1799+
clause, as is <literal>LIMIT</> with a NULL argument.
18001800
</para>
18011801

18021802
<para>
18031803
<literal>OFFSET</> says to skip that many rows before beginning to
18041804
return rows. <literal>OFFSET 0</> is the same as omitting the
1805-
<literal>OFFSET</> clause, and <literal>LIMIT NULL</> is the same
1806-
as omitting the <literal>LIMIT</> clause. If both <literal>OFFSET</>
1805+
<literal>OFFSET</> clause, as is <literal>OFFSET</> with a NULL argument.
1806+
</para>
1807+
1808+
<para>
1809+
If both <literal>OFFSET</>
18071810
and <literal>LIMIT</> appear, then <literal>OFFSET</> rows are
18081811
skipped before starting to count the <literal>LIMIT</> rows that
18091812
are returned.

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy