mirror of
https://github.com/postgres/postgres.git
synced 2025-12-19 17:02:53 +03:00
A bunch of small doco updates motivated by scanning the comments on
the interactive docs.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
<!-- $Header: /cvsroot/pgsql/doc/src/sgml/queries.sgml,v 1.11 2001/11/08 23:40:40 petere Exp $ -->
|
||||
<!-- $Header: /cvsroot/pgsql/doc/src/sgml/queries.sgml,v 1.12 2001/11/19 03:58:24 tgl Exp $ -->
|
||||
|
||||
<chapter id="queries">
|
||||
<title>Queries</title>
|
||||
@@ -910,15 +910,21 @@ SELECT a AS b FROM table1 ORDER BY a;
|
||||
<synopsis>
|
||||
SELECT <replaceable>select_list</replaceable>
|
||||
FROM <replaceable>table_expression</replaceable>
|
||||
<optional>ORDER BY <replaceable>sort_spec</replaceable></optional>
|
||||
<optional>LIMIT { <replaceable>number</replaceable> | ALL }</optional> <optional>OFFSET <replaceable>number</replaceable></optional>
|
||||
</synopsis>
|
||||
|
||||
<para>
|
||||
LIMIT allows you to retrieve just a portion of the rows that are
|
||||
generated by the rest of the query. If a limit count is given, no
|
||||
more than that many rows will be returned. If an offset is given,
|
||||
that many rows will be skipped before starting to return rows.
|
||||
more than that many rows will be returned.
|
||||
LIMIT ALL is the same as omitting a LIMIT clause.
|
||||
</para>
|
||||
|
||||
<para>
|
||||
OFFSET says to skip that many rows before beginning to return rows
|
||||
to the client. OFFSET 0 is the same as omitting an OFFSET clause.
|
||||
If both OFFSET and LIMIT appear, then OFFSET rows are skipped before
|
||||
starting to count the LIMIT rows that are returned.
|
||||
</para>
|
||||
|
||||
<para>
|
||||
|
||||
Reference in New Issue
Block a user