Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Updateable ResultSet

 
Mike London
Ranch Hand
Posts: 1208
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 64967
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Both. The result set objects are updated first, then you can commit the changes to the database with updateRow().
 
Mike London
Ranch Hand
Posts: 1208
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks. I guess I was just used to using SQL to to updates. <s>

Sounds great.

-- Mike
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic