How to make updates to updatable result sets in jdbc?



How to make updates to updatable result sets in jdbc?..

Answer / Randhir Kumar Dubey

To make updates to updatable result sets in JDBC, you can use the updateXXX() methods (where XXX represents the type of column being updated, such as INT, STRING, etc.) on the ResultSet object. You must also call the acceptChanges() method after updating all rows to commit the changes.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More JDBC Interview Questions

What are the differences between stored procedure and functions?

1 Answers  


What is the different between ResultSet and RowSet?

1 Answers  


how can we connect to db without using getConnection() method

4 Answers  


What is jdbc url for mysql?

1 Answers  


What will happen when ResultSet is not closed?

1 Answers   CTS,


Why isn't the java.sql.DriverManager class being found?

1 Answers  


Can I set up a connection pool with multiple user IDs? The single ID we are forced to use causes problems when debugging the DBMS.

1 Answers  


What is the difference between ExecuteUpdate and ExecuteQuery?

1 Answers   Exilant,


Explain the locking system in jdbc & its types?

1 Answers  


Explain the different ways to register a driver?

2 Answers  


How do you create Connection?

5 Answers   HCL,


What happens if we don't close the connection in jdbc?

1 Answers  


Categories