A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Arduino in Action
this week in the
A special promo:
Enter your blog post or vote on a blogger to be featured in an upcoming Journal
ResultSet object from executeUpdate()
Joined: May 17, 2001
Feb 18, 2002 01:40:00
Is it possible to get
object from executeUpdate().
It would be very useful if you could send me the information ASAP.
Thanking you in advance.
Joined: Jun 25, 2001
Feb 18, 2002 03:16:00
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.
I agree. Here's the link:
subject: ResultSet object from executeUpdate()
executing an INSERT statement using a PreparedStatement
No ResultSet was produced
insert command is not working.
inserting into a database problems
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2013