1<!--$Id: curclose.so,v 10.15 2003/10/18 19:15:51 bostic Exp $-->
2<!--Copyright (c) 1997,2008 Oracle.  All rights reserved.-->
3<!--See the file LICENSE for redistribution information.-->
4<html>
5<head>
6<title>Berkeley DB Reference Guide: Cursor close</title>
7<meta name="description" content="Berkeley DB: An embedded database programmatic toolkit.">
8<meta name="keywords" content="embedded,database,programmatic,toolkit,btree,hash,hashing,transaction,transactions,locking,logging,access method,access methods,Java,C,C++">
9</head>
10<body bgcolor=white>
11<a name="2"><!--meow--></a><a name="3"><!--meow--></a>
12<table width="100%"><tr valign=top>
13<td><b><dl><dt>Berkeley DB Reference Guide:<dd>Access Methods</dl></b></td>
14<td align=right><a href="/am/count.html"><img src="/images/prev.gif" alt="Prev"></a><a href="/toc.html"><img src="/images/ref.gif" alt="Ref"></a><a href="/am_misc/align.html"><img src="/images/next.gif" alt="Next"></a>
15</td></tr></table>
16<p align=center><b>Cursor close</b></p>
17<p>The <a href="/api_c/dbc_close.html">DBcursor-&gt;close</a> method closes the <a href="/api_c/dbc_class.html">DBC</a> cursor, after which the
18cursor may no longer be used.  Although cursors are implicitly closed
19when the database they point to are closed, it is good programming
20practice to explicitly close cursors.  In addition, in transactional
21systems, cursors may not exist outside of a transaction and so must be
22explicitly closed.</p>
23<table width="100%"><tr><td><br></td><td align=right><a href="/am/count.html"><img src="/images/prev.gif" alt="Prev"></a><a href="/toc.html"><img src="/images/ref.gif" alt="Ref"></a><a href="/am_misc/align.html"><img src="/images/next.gif" alt="Next"></a>
24</td></tr></table>
25<p><font size=1>Copyright (c) 1996,2008 Oracle.  All rights reserved.</font>
26</body>
27</html>
28