Determining If a Database Supports Updatable Result Sets
An updatable result set allows modification to data in a table through
the result set.
try {
DatabaseMetaData dmd = connection.getMetaData();
if (dmd.supportsResultSetConcurrency(
ResultSet.TYPE_FORWARD_ONLY, ResultSet.CONCUR_UPDATABLE)) {
// Updatable result sets are supported
} else {
// Updatable result sets are not supported
}
} catch (SQLException e) {
}
Post a comment