Resultset And Preparedstatement Java. Because a PreparedStatement object is precompiled it is possible to know about the ResultSet object that it will return without having to execute it. The above method summary explains few of the methods.
Remember the possible values for result set type are defined by the following constants in the ResultSet interface. PreparedStatement statement connectionprepareStatement String sql int resultSetType int resultSetConcurrency. And for a prepared statement.
We need to add.
Javasql ResultSet interface in Java represents the result set of a database query. PreparedStatement statement connectionprepareStatement String sql int resultSetType int resultSetConcurrency. How to use Prepared Statement in java. DeleteRow Deletes the current row from this ResultSet object and from the underlying database.