This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes JDBC and the fly likes MySQL Problem  !!! Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "MySQL Problem  !!!" Watch "MySQL Problem  !!!" New topic
Author

MySQL Problem !!!

Siddharth Bhargava
Ranch Hand

Joined: Feb 23, 2007
Posts: 257
I am using jdbcTemplate and while getting the value of the User I am getting an exception .... I am attaching my code snippet.....

The exception which is coming is as follows:




Please tell me the solution to this problem and tell me where i am going wrong.... Thanks in advance ...
Bob Good
Ranch Hand

Joined: Jan 09, 2008
Posts: 86
Perhaps the '?' parameter should be ?
Siddharth Bhargava
Ranch Hand

Joined: Feb 23, 2007
Posts: 257
I checked with ? also instead of '?' but its giving problem with it also ...
Bob Good
Ranch Hand

Joined: Jan 09, 2008
Posts: 86
The same exception or a different one?
Please post it...

You old one was this:
Parameter index out of range (1 > number of parameters, which is 0).
[ February 01, 2008: Message edited by: Bob Good ]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: MySQL Problem !!!
 
Similar Threads
java.sql.SQLException: Parameter index out of range (1 > number of parameters, which
HSQLDB - user lacks privilege or object not found
SQLException:Parameter Index out of Range
wild cards in MySQL using jdbc
Spring framework test case for DAO: No suitable driver