Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Greenplum
Gpdb
提交
802a4d41
G
Gpdb
项目概览
Greenplum
/
Gpdb
通知
7
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
G
Gpdb
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
802a4d41
编写于
2月 03, 2003
作者:
B
Bruce Momjian
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Change MOVE LAST to MOVE ALL.
Standard says FETCH LAST is after last row, and we don't do that.
上级
c7bceca1
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
12 addition
and
25 deletion
+12
-25
doc/src/sgml/ref/fetch.sgml
doc/src/sgml/ref/fetch.sgml
+6
-17
doc/src/sgml/ref/move.sgml
doc/src/sgml/ref/move.sgml
+3
-2
src/backend/parser/gram.y
src/backend/parser/gram.y
+2
-4
src/backend/parser/keywords.c
src/backend/parser/keywords.c
+1
-2
未找到文件。
doc/src/sgml/ref/fetch.sgml
浏览文件 @
802a4d41
<!--
$Header: /cvsroot/pgsql/doc/src/sgml/ref/fetch.sgml,v 1.2
3 2003/01/08 00:22:26 tgl
Exp $
$Header: /cvsroot/pgsql/doc/src/sgml/ref/fetch.sgml,v 1.2
4 2003/02/03 14:04:24 momjian
Exp $
PostgreSQL documentation
-->
...
...
@@ -22,7 +22,7 @@ PostgreSQL documentation
</refsynopsisdivinfo>
<synopsis>
FETCH [ <replaceable class="PARAMETER">direction</replaceable> ] [ <replaceable class="PARAMETER">count</replaceable> ] { IN | FROM } <replaceable class="PARAMETER">cursor</replaceable>
FETCH [ FORWARD | BACKWARD | RELATIVE ] [ <replaceable class="PARAMETER">#</replaceable> | ALL |
LAST |
NEXT | PRIOR ]
FETCH [ FORWARD | BACKWARD | RELATIVE ] [ <replaceable class="PARAMETER">#</replaceable> | ALL | NEXT | PRIOR ]
{ IN | FROM } <replaceable class="PARAMETER">cursor</replaceable>
</synopsis>
...
...
@@ -105,17 +105,6 @@ FETCH [ FORWARD | BACKWARD | RELATIVE ] [ <replaceable class="PARAMETER">#</repl
</listitem>
</varlistentry>
<varlistentry>
<term>
LAST
</term>
<listitem>
<para>
Same as <literal>ALL</>, but conforms to SQL92 syntax.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term>
NEXT
...
...
@@ -212,7 +201,7 @@ WARNING: FETCH/ABSOLUTE not supported, using RELATIVE
If the number of rows remaining in the cursor is less
than <replaceable class="PARAMETER">#</replaceable>,
then only those available are fetched.
Substituting the keyword ALL
or LAST
in place of a number will
Substituting the keyword ALL in place of a number will
cause all remaining rows in the cursor to be retrieved.
Rows may be fetched in both FORWARD and BACKWARD
directions. The default direction is FORWARD.
...
...
@@ -220,13 +209,13 @@ WARNING: FETCH/ABSOLUTE not supported, using RELATIVE
<para>
The cursor position can be before the first row of the query result, or on
any particular row of the result
, or after the last row of the result
.
any particular row of the result.
When created, a cursor is positioned before the first row. After fetching
some rows, the cursor is positioned on the last row retrieved. A new
<command>FETCH</command> always steps one row in the specified direction
(if possible) before beginning to return rows. If the
<command>FETCH</command> requests more rows than available, the cursor is
left positioned
after the last row of the query result (or before
the first
left positioned
on the last row of the query result (or on
the first
row, in the case of a backward fetch). This will always be the case after
<command>FETCH ALL</>.
</para>
...
...
@@ -236,7 +225,7 @@ WARNING: FETCH/ABSOLUTE not supported, using RELATIVE
A zero row count requests fetching the current row without moving the
cursor --- that is, re-fetching the most recently fetched row.
This will succeed unless the cursor is positioned before the
first row
or after the last row
; in which case, no row is returned.
first row; in which case, no row is returned.
</para>
</tip>
...
...
doc/src/sgml/ref/move.sgml
浏览文件 @
802a4d41
<!--
$Header: /cvsroot/pgsql/doc/src/sgml/ref/move.sgml,v 1.1
6 2003/01/08 00:22:26 tgl
Exp $
$Header: /cvsroot/pgsql/doc/src/sgml/ref/move.sgml,v 1.1
7 2003/02/03 14:04:24 momjian
Exp $
PostgreSQL documentation
-->
...
...
@@ -34,7 +34,8 @@ MOVE [ <replaceable class="PARAMETER">direction</replaceable> ] [ <replaceable c
</title>
<para>
<command>MOVE</command> allows the user to move the cursor position a
specified number of rows, or all the way to the end or start of the query.
specified number of rows, or to the beginning or end of the cursor.
<command>MOVE ALL</command> moves to the last row of the cursor.
<command>MOVE</command> works exactly like the <command>FETCH</command>
command, except it only repositions the cursor and does not return rows.
</para>
...
...
src/backend/parser/gram.y
浏览文件 @
802a4d41
...
...
@@ -11,7 +11,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/parser/gram.y,v 2.39
7 2003/02/02 23:46:38 tgl
Exp $
* $Header: /cvsroot/pgsql/src/backend/parser/gram.y,v 2.39
8 2003/02/03 14:04:24 momjian
Exp $
*
* HISTORY
* AUTHOR DATE MAJOR EVENT
...
...
@@ -361,7 +361,7 @@ static void doNegateFloat(Value *v);
KEY
LANCOMPILER LANGUAGE L
AST L
EADING LEFT LEVEL LIKE LIMIT
LANCOMPILER LANGUAGE LEADING LEFT LEVEL LIKE LIMIT
LISTEN LOAD LOCAL LOCALTIME LOCALTIMESTAMP LOCATION
LOCK_P
...
...
@@ -2713,7 +2713,6 @@ fetch_how_many:
Iconst { $$ = $1; }
| '-' Iconst { $$ = - $2; }
| ALL { $$ = INT_MAX; }
| LAST { $$ = INT_MAX; }
| NEXT { $$ = 1; }
| PRIOR { $$ = -1; }
;
...
...
@@ -7131,7 +7130,6 @@ unreserved_keyword:
| KEY
| LANCOMPILER
| LANGUAGE
| LAST
| LEVEL
| LISTEN
| LOAD
...
...
src/backend/parser/keywords.c
浏览文件 @
802a4d41
...
...
@@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/parser/keywords.c,v 1.13
2 2002/12/12 20:35:13 tgl
Exp $
* $Header: /cvsroot/pgsql/src/backend/parser/keywords.c,v 1.13
3 2003/02/03 14:04:24 momjian
Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -172,7 +172,6 @@ static const ScanKeyword ScanKeywords[] = {
{
"key"
,
KEY
},
{
"lancompiler"
,
LANCOMPILER
},
{
"language"
,
LANGUAGE
},
{
"last"
,
LAST
},
{
"leading"
,
LEADING
},
{
"left"
,
LEFT
},
{
"level"
,
LEVEL
},
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录