aspose file tools
The moose likes JDBC and the fly likes Updateable ResultSet Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Databases » JDBC
Reply Bookmark "Updateable ResultSet" Watch "Updateable ResultSet" New topic
Author

Updateable ResultSet

Mike London
Ranch Hand

Joined: Jul 12, 2002
Posts: 948
By using the methods to update an "updateable ResultSet", are you modifying the backend database or just the ResultSet itself? IOW, does the "Updateable" ResultSet modify the database itself or do I still need to do that using an SQL update stmt?

Thanks for anyone's answer to this (basic) question. <s>

Thanks again very much.

-- Mike
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 56185
    
  13

Both. The result set objects are updated first, then you can commit the changes to the database with updateRow().


[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
Mike London
Ranch Hand

Joined: Jul 12, 2002
Posts: 948
Thanks. I guess I was just used to using SQL to to updates. <s>

Sounds great.

-- Mike
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Updateable ResultSet
 
Similar Threads
Get Updated Record
Updateable ResultSet
Updatable resultsets
Updateable ResultSet
ResultSet is not updateable.