1.

How do you update a result set?

Answer»

ResultSet interface contains a collection of update methods for updating the data of a result set. Each update method has two versions for each data type

  • One that takes in a column name.

  • One that takes in a column index.

These methods change the columns of the current row in the ResultSet object, but not in the underlying database. To update your changes to the row in the database, you need to invoke one of the following methods

updateRow(), deleteRow(), refreshRow(), cancelRowUpdates(), insertRow()



Discussion

No Comment Found