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 |
What are the differences between stored procedure and functions?
What is the different between ResultSet and RowSet?
how can we connect to db without using getConnection() method
What is jdbc url for mysql?
What will happen when ResultSet is not closed?
Why isn't the java.sql.DriverManager class being found?
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.
What is the difference between ExecuteUpdate and ExecuteQuery?
Explain the locking system in jdbc & its types?
Explain the different ways to register a driver?
How do you create Connection?
What happens if we don't close the connection in jdbc?