@@ -1063,7 +1063,8 @@ SELECT name FROM distributors ORDER BY code;
1063
1063
<synopsis>
1064
1064
LIMIT { <replaceable class="parameter">count</replaceable> | ALL }
1065
1065
OFFSET <replaceable class="parameter">start</replaceable>
1066
- </synopsis><replaceable class="parameter">count</replaceable> specifies the
1066
+ </synopsis>
1067
+ <replaceable class="parameter">count</replaceable> specifies the
1067
1068
maximum number of rows to return, while <replaceable
1068
1069
class="parameter">start</replaceable> specifies the number of rows
1069
1070
to skip before starting to return rows. When both are specified,
@@ -1086,17 +1087,19 @@ OFFSET <replaceable class="parameter">start</replaceable>
1086
1087
OFFSET <replaceable class="parameter">start</replaceable> { ROW | ROWS }
1087
1088
FETCH { FIRST | NEXT } [ <replaceable class="parameter">count</replaceable> ] { ROW | ROWS } ONLY
1088
1089
</synopsis>
1089
- According to the standard, the <literal>OFFSET</literal> clause must come
1090
- before the <literal>FETCH</literal> clause if both are present; but
1091
- <productname>PostgreSQL</> is laxer and allows either order.
1090
+ In this syntax, to write anything except a simple integer constant for
1091
+ <replaceable class="parameter">start</> or <replaceable
1092
+ class="parameter">count</replaceable>, you must write parentheses
1093
+ around it.
1094
+ If <replaceable class="parameter">count</> is
1095
+ omitted in a <literal>FETCH</> clause, it defaults to 1.
1092
1096
<literal>ROW</literal>
1093
1097
and <literal>ROWS</literal> as well as <literal>FIRST</literal>
1094
1098
and <literal>NEXT</literal> are noise words that don't influence
1095
- the effects of these clauses. In this syntax, when using expressions
1096
- other than simple constants for <replaceable class="parameter">start</>
1097
- or <replaceable class="parameter">count</replaceable>, parentheses will be
1098
- necessary in most cases. If <replaceable class="parameter">count</> is
1099
- omitted in <literal>FETCH</>, it defaults to 1.
1099
+ the effects of these clauses.
1100
+ According to the standard, the <literal>OFFSET</literal> clause must come
1101
+ before the <literal>FETCH</literal> clause if both are present; but
1102
+ <productname>PostgreSQL</> is laxer and allows either order.
1100
1103
</para>
1101
1104
1102
1105
<para>
0 commit comments