As is true with updating data and inserting a new row, deleting a row is just the same for a JdbcRowSet
object as for a ResultSet
object. The owner wants to discontinue selling French Roast decaffeinated coffee, which is the last row in the jdbcRs
object. In the following lines of code, the first line moves the cursor to the last row, and the second line deletes the last row from the jdbcRs
object and from the database:
jdbcRs.last(); jdbcRs.deleteRow();
No comments:
Post a Comment