August 1999
Intermediate to advanced
1488 pages
72h 53m
English
cursor.updateRow(table)
The updateRow() method of the Cursor object uses an updateable cursor and updates the current row in the specified table of the cursor object. If the insert was successful, 0 is returned; otherwise, it returns an error code that can be obtained by using the majorErrorCode() and majorErrorMessage() methods of the Connection or database objects.
Listing 8.36 creates a Cursor object and selects all rows. The updateRow() method is then used to update the current row with three specified values.
<SERVER> // Assign the user submitted ID to the client object as properties client.uid = request.uid; ... |
Read now
Unlock full access