close.7

来自「PostgreSQL 8.2中增加了很多企业用户所需要的功能和性能上的提高,其开」· 7 代码 · 共 54 行

7
54
字号
.\\" auto-generated by docbook2man-spec $Revision: 1.1.1.1 $.TH "CLOSE" "" "2008-01-03" "SQL - Language Statements" "SQL Commands".SH NAMECLOSE \- close a cursor.SH SYNOPSIS.sp.nfCLOSE \fIname\fR.sp.fi.SH "DESCRIPTION".PP\fBCLOSE\fR frees the resources associated with an open cursor.After the cursor is closed, no subsequent operationsare allowed on it. A cursor should be closed when it isno longer needed..PPEvery non-holdable open cursor is implicitly closed when atransaction is terminated by \fBCOMMIT\fR or\fBROLLBACK\fR. A holdable cursor is implicitlyclosed if the transaction that created it aborts via\fBROLLBACK\fR. If the creating transaction successfullycommits, the holdablecursor remains open until an explicit \fBCLOSE\fR isexecuted, or the client disconnects..SH "PARAMETERS".TP\fB\fIname\fB\fRThe name of an open cursor to close..SH "NOTES".PPPostgreSQL does not have an explicit\fBOPEN\fR cursor statement; a cursor is consideredopen when it is declared. Use theDECLARE [\fBdeclare\fR(7)]statement to declare a cursor..PPYou can see all available cursors by querying the\fBpg_cursors\fR system view..SH "EXAMPLES".PPClose the cursor liahona:.sp.nfCLOSE liahona;.sp.fi.SH "COMPATIBILITY".PP\fBCLOSE\fR is fully conforming with the SQL standard..SH "SEE ALSO"DECLARE [\fBdeclare\fR(7)], FETCH [\fBfetch\fR(l)], MOVE [\fBmove\fR(l)]

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?