db.insert()

Syntax
long db.insert( long table_id [, long mode [, long eflag]] ) 

Description
This adds a new record to a specified table. The record pointer does not change.

Arguments
table_id The table ID, as returned by db.bind().
mode Set this to DB.RETRY if retry points and the SELECT FOR UPDATE statement are being used. The actual database action is postponed until the transaction is committed.
eflag For some errors, it is possible to indicate the action the system must perform when the error occurs. 


Return Value

    0 success
 >0 error

Related Post:

People who read this post also read :



0 comments:

Post a Comment

Share

Twitter Delicious Facebook Digg Stumbleupon Favorites More