@@ -26,6 +26,8 @@ SELECT [ALL|DISTINCT [ON <replaceable class="PARAMETER">column</replaceable>] ]
26
26
[ HAVING <replaceable class="PARAMETER">condition</replaceable> [, ...] ]
27
27
[ { UNION [ALL] | INTERSECT | EXCEPT } <replaceable class="PARAMETER">select</replaceable> ]
28
28
[ ORDER BY <replaceable class="PARAMETER">column</replaceable> [ ASC | DESC ] [, ...] ]
29
+ [ FOR UPDATE [OF class_name...]]
30
+ [ LIMIT count [OFFSET|, count]]
29
31
</synopsis>
30
32
31
33
<refsect2 id="R2-SQL-SELECT-1">
@@ -242,6 +244,15 @@ including duplicates.</para>
242
244
The EXCEPT give you the rows in the upper query not in the lower query.
243
245
(See EXCEPT clause).</para>
244
246
247
+ <para>
248
+ The FOR UPDATE clause allows the SELECT statement to perform
249
+ exclusive locking of selected rows.
250
+ (See EXCEPT clause).</para>
251
+
252
+ <para>
253
+ The LIMIT...OFFSET clause allows control over which rows are
254
+ returned by the query.</para>
255
+
245
256
<para>
246
257
You must have SELECT privilege to a table to read its values
247
258
(See <command>GRANT</command>/<command>REVOKE</command> statements).
@@ -709,6 +720,8 @@ SELECT [ ALL | DISTINCT ] <replaceable class="PARAMETER">expression</replaceable
709
720
[ HAVING <replaceable class="PARAMETER">condition</replaceable> [, ...] ]
710
721
[ { UNION [ALL] | INTERSECT | EXCEPT } <replaceable class="PARAMETER">select</replaceable>]
711
722
[ ORDER BY <replaceable class="PARAMETER">column</replaceable> [ ASC | DESC ] [, ...] ]
723
+ [ FOR UPDATE [OF class_name...]]
724
+ [ LIMIT count [OFFSET|, count]]
712
725
</synopsis>
713
726
714
727
<refsect2 id="R2-SQL-SELECTINTO-1">
0 commit comments