DB->join API Ref

#include <db.h>

int DB->join(DB *primary, DBC **curslist, DBC **dbcp, u_int32_t flags);


Description: DB->join

The DB->join method creates a specialized join cursor for use in performing equality or natural joins on secondary indices. For information on how to organize your data to use this functionality, see Equality join.

The DB->join method method is called using the DB handle of the primary database.

The join cursor supports only the DBcursor->get and dbc_close cursor functions:


DBcursor->get DBcursor->close

The DB->join method returns a non-zero error value on failure and 0 on success.

Parameters
curslist dbcp flags

Errors

The DB->join method may fail and return one of the following non-zero errors:


DB_REP_HANDLE_DEAD

DB_REP_LOCKOUT

DB_SECONDARY_BAD

EINVAL


Class DB
See Also Databases and Related Methods

APIRef

Copyright (c) 1996,2008 Oracle. All rights reserved.