You need to use bind variables in this statement. If you don't know how to do that, look up a JDBC tutorial to learn the way.
The problem is generally caused by the fact that the database expects the date to be in a format different from what java.sql.Date.toString() produces. Using bind variables is independent of the textual representation of these variables and therefore will solve your problem, making your code immune to SQL injection attacks and more performant as well.
manish kr. pandey
posted 5 years ago
thanks for help me.
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads