aspose file tools
The moose likes JDBC and the fly likes stmt.getUpdateCount Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Databases » JDBC
Reply 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://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: stmt.getUpdateCount
 
Similar Threads
How to overcome OutOfMemory exception?
HTML FORM tag Query??
String [ ] args
Query about Composite keys - Hibernate
Issue in Inserting / Updating the table with trigger using Hibernate