Slide 14.31: Closing the result set and statement objects Slide 14.33: Committing changes Home |
INSERT
or UPDATE
operations, you will typically create a PreparedStatement
object.
Instead of calling the same statement over and over with different inputs, you can instead use a PreparedStatement
, which allows you to execute a statement with varying sets of input parameters.setXXX( )
methods on the PreparedStatement
object to bind data into the prepared statement to be sent to the database.INSERT
operations that add two rows to the EMP
table.
|