This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Update query is wrong?

 
sahar sa
Ranch Hand
Posts: 102
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 240
1
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

I guess this is the problem.
Change this to


Thanks,
Srikkanth
 
sahar sa
Ranch Hand
Posts: 102
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 368
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If that is the case, did your code even compile?
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic