Skip to content

Commit 6261c75

Browse files
committed
Implement SQL92-compatible FIRST, LAST, ABSOLUTE n, RELATIVE n options
for FETCH and MOVE.
1 parent e470400 commit 6261c75

File tree

13 files changed

+629
-347
lines changed

13 files changed

+629
-347
lines changed

doc/src/sgml/ref/fetch.sgml

Lines changed: 198 additions & 132 deletions
Large diffs are not rendered by default.

doc/src/sgml/ref/move.sgml

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!--
2-
$Header: /cvsroot/pgsql/doc/src/sgml/ref/move.sgml,v 1.19 2003/03/10 03:53:49 tgl Exp $
2+
$Header: /cvsroot/pgsql/doc/src/sgml/ref/move.sgml,v 1.20 2003/03/11 19:40:22 tgl Exp $
33
PostgreSQL documentation
44
-->
55

@@ -21,7 +21,7 @@ PostgreSQL documentation
2121
<date>1999-07-20</date>
2222
</refsynopsisdivinfo>
2323
<synopsis>
24-
MOVE [ <replaceable class="PARAMETER">direction</replaceable> ] [ <replaceable class="PARAMETER">count</replaceable> ] { IN | FROM } <replaceable class="PARAMETER">cursor</replaceable>
24+
MOVE [ <replaceable class="PARAMETER">direction</replaceable> { FROM | IN } ] <replaceable class="PARAMETER">cursor</replaceable>
2525
</synopsis>
2626
</refsynopsisdiv>
2727

@@ -33,9 +33,7 @@ MOVE [ <replaceable class="PARAMETER">direction</replaceable> ] [ <replaceable c
3333
Description
3434
</title>
3535
<para>
36-
<command>MOVE</command> allows the user to move the cursor position a
37-
specified number of rows, or to the beginning or end of the cursor.
38-
<command>MOVE ALL</command> moves to the end of the cursor.
36+
<command>MOVE</command> repositions a cursor without retrieving any data.
3937
<command>MOVE</command> works exactly like the <command>FETCH</command>
4038
command, except it only repositions the cursor and does not return rows.
4139
</para>
@@ -54,8 +52,9 @@ MOVE [ <replaceable class="PARAMETER">direction</replaceable> ] [ <replaceable c
5452
</title>
5553

5654
<para>
57-
<command>MOVE</command> is a <productname>PostgreSQL</productname>
58-
language extension.
55+
The count returned in <command>MOVE</command>'s status string is the
56+
count of the number of rows that would have been returned by the
57+
equivalent <command>FETCH</command> command.
5958
</para>
6059

6160
<para>
@@ -119,9 +118,6 @@ COMMIT WORK;
119118
</title>
120119
<para>
121120
There is no <acronym>SQL92</acronym> <command>MOVE</command> statement.
122-
Instead, <acronym>SQL92</acronym> allows
123-
one to <command>FETCH</command> rows from an absolute cursor position,
124-
implicitly moving the cursor to the correct position.
125121
</para>
126122
</refsect2>
127123
</refsect1>

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy