Author
Update query is wrong?
sahar sa
Ranch Hand
Joined: Jul 06, 2009
Posts: 102
Hi,
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!
Sahar.
Srikkanth Mohanasundaram
Ranch Hand
Joined: Feb 07, 2007
Posts: 185
I guess this is the problem.
Change this to
Thanks,
Srikkanth
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:
source:
http://java.sun.com/j2se/1.4.2/docs/guide/jdbc/getstart/preparedstatement.html
thanks,
Sahar.
Satya Maheshwari
Ranch Hand
Joined: Jan 01, 2007
Posts: 368
posted Oct 26, 2009 05:06:22
0
If that is the case, did your code even compile?
Thanks and Regards
subject: Update query is wrong?