11<!--
2- $Header: /cvsroot/pgsql/doc/src/sgml/ref/fetch.sgml,v 1.23 2003/01/08 00:22:26 tgl Exp $
2+ $Header: /cvsroot/pgsql/doc/src/sgml/ref/fetch.sgml,v 1.24 2003/02/03 14:04:24 momjian Exp $
33PostgreSQL documentation
44-->
55
@@ -22,7 +22,7 @@ PostgreSQL documentation
2222 </refsynopsisdivinfo>
2323 <synopsis>
2424FETCH [ <replaceable class="PARAMETER">direction</replaceable> ] [ <replaceable class="PARAMETER">count</replaceable> ] { IN | FROM } <replaceable class="PARAMETER">cursor</replaceable>
25- FETCH [ FORWARD | BACKWARD | RELATIVE ] [ <replaceable class="PARAMETER">#</replaceable> | ALL |LAST | NEXT | PRIOR ]
25+ FETCH [ FORWARD | BACKWARD | RELATIVE ] [ <replaceable class="PARAMETER">#</replaceable> | ALL | NEXT | PRIOR ]
2626 { IN | FROM } <replaceable class="PARAMETER">cursor</replaceable>
2727 </synopsis>
2828
@@ -105,17 +105,6 @@ FETCH [ FORWARD | BACKWARD | RELATIVE ] [ <replaceable class="PARAMETER">#</repl
105105 </listitem>
106106 </varlistentry>
107107
108- <varlistentry>
109- <term>
110- LAST
111- </term>
112- <listitem>
113- <para>
114- Same as <literal>ALL</>, but conforms to SQL92 syntax.
115- </para>
116- </listitem>
117- </varlistentry>
118-
119108 <varlistentry>
120109 <term>
121110 NEXT
@@ -212,21 +201,21 @@ WARNING: FETCH/ABSOLUTE not supported, using RELATIVE
212201 If the number of rows remaining in the cursor is less
213202 than <replaceable class="PARAMETER">#</replaceable>,
214203 then only those available are fetched.
215- Substituting the keyword ALLor LAST in place of a number will
204+ Substituting the keyword ALL in place of a number will
216205 cause all remaining rows in the cursor to be retrieved.
217206 Rows may be fetched in both FORWARD and BACKWARD
218207 directions. The default direction is FORWARD.
219208 </para>
220209
221210 <para>
222211 The cursor position can be before the first row of the query result, or on
223- any particular row of the result, or after the last row of the result .
212+ any particular row of the result.
224213 When created, a cursor is positioned before the first row. After fetching
225214 some rows, the cursor is positioned on the last row retrieved. A new
226215 <command>FETCH</command> always steps one row in the specified direction
227216 (if possible) before beginning to return rows. If the
228217 <command>FETCH</command> requests more rows than available, the cursor is
229- left positionedafter the last row of the query result (orbefore the first
218+ left positionedon the last row of the query result (oron the first
230219 row, in the case of a backward fetch). This will always be the case after
231220 <command>FETCH ALL</>.
232221 </para>
@@ -236,7 +225,7 @@ WARNING: FETCH/ABSOLUTE not supported, using RELATIVE
236225 A zero row count requests fetching the current row without moving the
237226 cursor --- that is, re-fetching the most recently fetched row.
238227 This will succeed unless the cursor is positioned before the
239- first row or after the last row ; in which case, no row is returned.
228+ first row; in which case, no row is returned.
240229 </para>
241230 </tip>
242231