This week's book giveaway is in the JavaFX forum.
We're giving away four copies of Introducing JavaFX 8 Programming and have Herbert Schildt on-line!
See this thread for details.
The moose likes JDBC and Relational Databases and the fly likes Updateable ResultSet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Introducing JavaFX 8 Programming this week in the JavaFX forum!
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
Bookmark "Updateable ResultSet" Watch "Updateable ResultSet" New topic
Author

Updateable ResultSet

Mike London
Ranch Hand

Joined: Jul 12, 2002
Posts: 1121
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: 63342
    
  70

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


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Mike London
Ranch Hand

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

Sounds great.

-- Mike
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Updateable ResultSet
 
It's not a secret anymore!