Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint
Share this Page URL
Help

Chapter 20. Database Access > Changing Data Using a ResultSet

20.9. Changing Data Using a ResultSet

20.9.1. Problem

You want to change the data using a ResultSet.

20.9.2. Solution

If you have JDBC 2 and a conforming driver, you can request an updatable ResultSet when you create the statement object. Then, when you're on the row you want to change, use the update( ) methods, and end with updateRow( ).


  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial