June 2001
Intermediate to advanced
688 pages
19h 18m
English
The DBcursor→c_get function is the standard interface for retrieving records from the database with a cursor. The DBcursor→c_get function takes a flag that controls how the cursor is positioned within the database, and returns the key/data item associated with that positioning. Similar to DB→get, DBcursor→c_get may also take a supplied key and retrieve the data associated with that key from the database. There are several flags that you can set to customize retrieval:
DB_FIRST, DB_LAST Return the first (last) record in the database.
DB_NEXT, DB_PREV Return the next (previous) record in the database.
DB_NEXT_DUP Return the next record in the database if it is a duplicate data item for the ...