aspose file tools*
The moose likes JDBC and the fly likes query error Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "query error" Watch "query error" New topic
Author

query error

sachins joshi
Greenhorn

Joined: Jun 21, 2006
Posts: 4
this code give sql exception Too Few parameters.expected



[edited to add those code tags Ben referred to]
[ July 13, 2006: Message edited by: Jeanne Boyarsky ]
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

Javaranch tip:

If you are going to post more than a line or two of your code, wrap that
code in a set of UBB Code tags.
Doing so will help to preserve your code's indenting, making it easier to read.
If it is easier to read, more people will actaully read it and you will
stand a better chance of getting help with your question.



I'm going to move this to our JDBC forum where the database gurus hang out.
Good-Luck


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
Jeanne Boyarsky
author & internet detective
Marshal

Joined: May 26, 2003
Posts: 30758
    
156

Sachins,
Which line of code throws that error?


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
Jeanne Boyarsky
author & internet detective
Marshal

Joined: May 26, 2003
Posts: 30758
    
156

Also, does the query work if you run it at the database command line?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: query error