第二章 SQL参考命令-CLOSE

CLOSE

Closes acursor.

概要

CLOSE cursor name

描述

CLOSE释放和一个游标关联的资源。游标关闭后,没有后续操作是允许就可以了。当不再需要它的游标应该关闭。

当一个事务由COMMIT或ROLLBACK终止每个不可保持打开游标被隐式关闭。如果创建事务通过它中止ROLLBACK一个保持游标被隐式关闭。如果创建事务成功提交,直到执行一个明确的CLOSE的保持的游标保持打开,或者客户端断开。

parameter

cursor_name     Thename of an open cursor to close.

Notes

Greenplum Database does not have anexplicit open cursorstatement. A cursor is considered open when it is declared. Use the declare statement to declare (and open) acursor.

You can seeall available cursors by querying the pg_cursors system view.

示例

Close thecursor portaia:Q

CLOSE portala;

兼容性

close is fully conforming with the SQLstandard.

相关参考

DECLARE,FETCH, MOVE

 


  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值