Software: Apache/2.0.54 (Fedora). PHP/5.0.4 uname -a: Linux mina-info.me 2.6.17-1.2142_FC4smp #1 SMP Tue Jul 11 22:57:02 EDT 2006 i686 uid=48(apache) gid=48(apache) groups=48(apache) Safe-mode: OFF (not secure) /usr/share/doc/db4-devel-4.3.27/ref/am/ drwxr-xr-x |
Viewing file: Select action/file-type:
Storing records with a cursorThe DBcursor->c_put method stores records into the database using a cursor. In general, DBcursor->c_put takes a key and inserts the associated data into the database, at a location controlled by a specified flag. There are several flags that you can set to customize storage:
In all cases, the cursor is repositioned by a DBcursor->c_put operation to point to the newly inserted key/data pair in the database. The following is a code example showing a cursor storing two data items in a database that supports duplicate data items: int store(dbp) DB *dbp; { DBC *dbcp; DBT key, data; int ret;
Copyright (c) 1996-2004 Sleepycat Software, Inc. - All rights reserved. |
:: Command execute :: | |
--[ c99shell v. 1.0 pre-release build #16 powered by Captain Crunch Security Team | http://ccteam.ru | Generation time: 0.0039 ]-- |