This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes JDBC and the fly likes stmt.getUpdateCount Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "stmt.getUpdateCount" Watch "stmt.getUpdateCount" New topic
Author

stmt.getUpdateCount

kelly benson
Greenhorn

Joined: Nov 28, 2004
Posts: 3
what does this method do if i fire a select query that returns 0 records.
what does it do in general.
G Raghavan
Greenhorn

Joined: Aug 21, 2000
Posts: 15
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.


G Raghavan
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: stmt.getUpdateCount