• Post Reply Bookmark Topic Watch Topic
  • New Topic

ResultSet object from executeUpdate()

 
Venkatesh Rajendran
Ranch Hand
Posts: 59
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 110
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!