Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

stmt.getUpdateCount

 
kelly benson
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
what does this method do if i fire a select query that returns 0 records.
what does it do in general.
 
G Raghavan
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This method returns the number of rows affected, when an insert or update query i executed.

If you have executed a select query which will return a resultset it will return -1.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic