doc: update query section to show LIMIT/OFFSET like SELECT

The parameter names were slightly better in SELECT, so make them match.

Reported-by: Euler Taveira

Discussion: https://postgr.es/m/CAHE3wgh-EYuAbLG1VS3QTHii1TgWS31h-fYEgrdda7oTOuskOQ@mail.gmail.com

Backpatch-through: master
This commit is contained in:
Bruce Momjian 2023-11-17 16:46:43 -05:00
parent b2e237afdd
commit 8127e6e8ad
1 changed files with 2 additions and 1 deletions

View File

@ -1912,7 +1912,8 @@ SELECT a + b AS sum, c FROM table1 ORDER BY sum + c; -- wrong
SELECT <replaceable>select_list</replaceable>
FROM <replaceable>table_expression</replaceable>
<optional> ORDER BY ... </optional>
<optional> LIMIT { <replaceable>number</replaceable> | ALL } </optional> <optional> OFFSET <replaceable>number</replaceable> </optional>
<optional> LIMIT { <replaceable class="parameter">count</replaceable> | ALL } </optional>
<optional> OFFSET <replaceable class="parameter">start</replaceable> </optional>
</synopsis>
</para>