Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitfda21aa

Browse files
committed
Docs: clarify description of LIMIT/OFFSET behavior.
Section 7.6 was a tad confusing because it specified what LIMIT NULLdoes, but neglected to do the same for OFFSET NULL, making this looklike perhaps a special case or a wrong restatement of the bit aboutLIMIT ALL. Wordsmith a bit while at it. Per bug #14084.
1 parent22989a8 commitfda21aa

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 possiblyless, if the query itself yieldsless rows).
1797+
returned (but possiblyfewer, if the query itself yieldsfewer 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)

[8]ページ先頭

©2009-2025 Movatter.jp