Refreshing a Row in an Updatable Result Set
try {
// Create an updatable result set
Statement stmt = connection.createStatement(
ResultSet.TYPE_SCROLL_SENSITIVE, ResultSet.CONCUR_UPDATABLE);
ResultSet resultSet = stmt.executeQuery("SELECT * FROM my_table");
// Use the result set...
// Retrieve the current values of the row from the database
resultSet.refreshRow();
} catch(SQLException e) {
}
Post a comment