aspose file tools
The moose likes JDBC and the fly likes ResultSet object from executeUpdate() Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Databases » JDBC
Reply Bookmark "ResultSet object from executeUpdate()" Watch "ResultSet object from executeUpdate()" New topic
Author

ResultSet object from executeUpdate()

Venkatesh Rajendran
Ranch Hand

Joined: May 17, 2001
Posts: 59
Dear All,
Is it possible to get ResultSet object from executeUpdate().
It would be very useful if you could send me the information ASAP.
Thanking you in advance.
Regards,
Venkat
Mahesh Mamani
Ranch Hand

Joined: Jun 25, 2001
Posts: 110
Venkat,
The executeUpdate() RETURNS "either the row count for INSERT, UPDATE or DELETE statements, or 0 for SQL statements that return nothing, that is for DDL statements"
So, u have to use executeQuery() only.
Mahesh
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: ResultSet object from executeUpdate()
 
Similar Threads
executing an INSERT statement using a PreparedStatement
No ResultSet was produced
insert command is not working.
Database update
inserting into a database problems