3
<!--Copyright 1997-2002 by Sleepycat Software, Inc.-->
4
<!--All rights reserved.-->
5
<!--See the file LICENSE for redistribution information.-->
8
<title>Berkeley DB: db join</title>
9
<meta name="description" content="Berkeley DB: An embedded database programmatic toolkit.">
10
<meta name="keywords" content="embedded,database,programmatic,toolkit,b+tree,btree,hash,hashing,transaction,transactions,locking,logging,access method,access methods,java,C,C++">
13
<a name="2"><!--meow--></a>
14
<table width="100%"><tr valign=top>
16
<h1><i>db</i> <b>join</b></h1>
19
<a href="../api_tcl/tcl_index.html"><img src="../images/api.gif" alt="API"></a><a href="../reftoc.html"><img src="../images/ref.gif" alt="Ref"></a>
30
<p>The <i>db</i> <b>join</b> command joins the specified cursors and returns a
31
cursor handle that can be used to iterate through the joined {key data}
32
pairs. The returned cursor handle is bound to a Tcl command of the form
33
<b>dbN.cX</b>, where X is an integer starting at 0 (for example,
34
db0.c0 and db0.c1). It is through this Tcl command that the script
35
accesses the cursor methods.
36
<p>The returned join cursor has limited cursor functionality, and only the
37
<i>dbc</i> <b>get</b> and <i>dbc</i> <b>close</b> commands will succeed.
38
<p>See <a href="../ref/am/join.html">Equality join</a> for more information on
39
the underlying requirements for joining.
40
<p>In a transaction-protected environment, all the cursors listed must have
41
been created within the same transaction.
42
<p>In the case of error, a Tcl error is thrown.
44
<table width="100%"><tr><td><br></td><td align=right>
45
<a href="../api_tcl/tcl_index.html"><img src="../images/api.gif" alt="API"></a><a href="../reftoc.html"><img src="../images/ref.gif" alt="Ref"></a>
47
<p><font size=1><a href="http://www.sleepycat.com">Copyright Sleepycat Software</a></font>