db.update()

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


Description
This rewrites the current record. When updating a record with this function, you are permitted to update the primary key of the record.


Arguments
table_id      The table ID, as returned by db.bind().
mode      This has two possible values:
  • DB.RETRY Set this value if retry points and the SELECT FOR UPDATE statement are being used. The actual database action is postponed until the transaction is committed.
  • DB.DELAYED.LOCK This option is available only for records for which a delayed lock has been set with db.eq().
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