KISAMRewrite

int KISAMRewrite(KHAND handle, char *lpRecbuf, ROWID Rowid)

Parameter Type Purpose
handle KHAND handle of table containing row to be updated
lpRecbuf char * record buffer containing updated row values
Rowid ROWID The rowid of the record to be updated. This must have been locked in a previous KISAMReadHold operation.

This will update the record specified by the rowid in the third argument Rowid using the contents of the buffer pointed to by lpRecbuf. The record should have been locked earlier by a KISAMReadHoldKey or KISAMReadHoldNext operation.

The update may fail with error KE_DUPLICATE (4) if a duplicate key value is inserted into an index that does not permit duplicates.