java 1 Answer(s) 6 years and 7 months ago
Posted in : JDBC
June 6, 2008 at 4:41 PM
In the JDBC 2.0 core API, the ResultSet interface has a set of new updateXXX methods and other new related methods that make it possible to update table column values programmatically. This new API also adds methods to the Statement interface (and PreparedStatement and CallableStatement interfaces) so that update statements may be executed as a batch rather than singly.
The SQL statement that will be sent to the database is supplied as the argument to one of the execute methods on a Statement object.
ResultSet rs = stmt.executeQuery("SELECT a, b, c FROM empdetail");