aspose file tools*
The moose likes JDBC and the fly likes How to use to_date in preparedstatement Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC
Bookmark "How to use to_date in preparedstatement" Watch "How to use to_date in preparedstatement" New topic
Author

How to use to_date in preparedstatement

Mohan Reddy
Greenhorn

Joined: Feb 10, 2006
Posts: 21
hi,
Please help me to use to_date function in PreparedStatement as its showing error....



thanks in advance


cheers<br /> <br />mohan.<br /> <br /><br />Always do what you are afraid to do...
Paul Sturrock
Bartender

Joined: Apr 14, 2004
Posts: 10336

Why are you using to_date with a PreparedStatement? Could you not just bind the date parameter (i.e. with setDate())?


JavaRanch FAQ HowToAskQuestionsOnJavaRanch
Mohan Reddy
Greenhorn

Joined: Feb 10, 2006
Posts: 21
Thanks Mr. Paul..

I got succeeded.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to use to_date in preparedstatement
 
Similar Threads
sql exception when try to get date
error of missing values
Oracle date-time fields
Converting String to Date???
Update query