CLOSE 中文man页面

系统
CLOSE 释放和一个游标关联的资源。 一个游标关闭后,不允许对其再做任何操作。一个不再使用的游标应该关闭掉。

NAME

CLOSE - 关闭一个游标

SYNOPSIS

CLOSE name

DESCRIPTION 描述

CLOSE 释放和一个游标关联的资源。 一个游标关闭后,不允许对其再做任何操作。一个不再使用的游标应该关闭掉。


 在一个事务用 COMMIT 或者 ROLLBACK 终止之后, 每个不可保持的已打开游标都隐含关闭。如果创建事务通过 ROLLBACK 退出, 那么一个可以保持的游标隐含关闭。如果创建事务成功提交,那么可保持的游标保持打开, 直到执行一个明确的 CLOSE,或者客户端断开。  

PARAMETERS 参数

name

 一个待关闭的游标的名字。

NOTES 注意

PostgreSQL 没有明确的 OPEN (打开)游标的语句; 我们认为一个游标在声明时就打开了。使用 DECLARE 语句声明一个游标。  

EXAMPLES 例子


 关闭游标 liahona:

CLOSE liahona;

#p#

NAME

CLOSE - close a cursor

SYNOPSIS

CLOSE name

DESCRIPTION

CLOSE frees the resources associated with an open cursor. After the cursor is closed, no subsequent operations are allowed on it. A cursor should be closed when it is no longer needed.

Every non-holdable open cursor is implicitly closed when a transaction is terminated by COMMIT or ROLLBACK. A holdable cursor is implicitly closed if the transaction that created it aborts via ROLLBACK. If the creating transaction successfully commits, the holdable cursor remains open until an explicit CLOSE is executed, or the client disconnects.  

PARAMETERS

name
The name of an open cursor to close.

NOTES

PostgreSQL does not have an explicit OPEN cursor statement; a cursor is considered open when it is declared. Use the DECLARE statement to declare a cursor.  

EXAMPLES

Close the cursor liahona:

CLOSE liahona;

责任编辑:韩亚珊 来源: CMPP.net
相关推荐

2011-08-25 14:00:48

close中文man

2011-08-25 16:57:51

iconv_close中文man

2011-08-24 16:48:36

man中文man

2011-08-15 10:21:09

man中文man

2011-08-11 16:11:49

at中文man

2011-08-25 10:21:56

man.conf中文man

2011-08-11 15:03:21

ACCESS中文man

2011-08-16 10:59:16

pwconv中文man

2011-08-18 19:02:43

environ中文man

2011-08-25 17:43:07

snprintf中文man

2011-08-19 18:30:52

ipc中文man

2011-08-24 15:35:52

hier中文man

2011-08-25 17:18:07

putc中文man

2011-08-15 13:53:19

stat中文man

2011-08-16 10:10:58

setup中文man

2011-08-25 15:24:31

execlp中文man

2011-08-25 18:24:12

termios中文man

2011-08-15 18:06:07

restore中文man

2011-08-24 17:26:35

reindex中文man

2011-08-25 16:55:26

gets中文man
点赞
收藏

51CTO技术栈公众号