File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JDBC and Relational Databases and the fly likes Update query is wrong? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
Bookmark "Update query is wrong?" Watch "Update query is wrong?" New topic

Update query is wrong?

sahar sa
Ranch Hand

Joined: Jul 06, 2009
Posts: 102
Im having problem with this Update query, I dont know what is wrong? I checked with sun but couldnt find any thing different. still got error!
any idea?
here is the code:

and error:

Thank you so much!

Srikkanth Mohanasundaram
Ranch Hand

Joined: Feb 07, 2007
Posts: 237

I guess this is the problem.
Change this to

sahar sa
Ranch Hand

Joined: Jul 06, 2009
Posts: 102
I find the answer:
the three methods execute, executeQuery, and executeUpdate are modified so that they take no argument:
Satya Maheshwari
Ranch Hand

Joined: Jan 01, 2007
Posts: 368
If that is the case, did your code even compile?

Thanks and Regards
jQuery in Action, 3rd edition
subject: Update query is wrong?
It's not a secret anymore!