wood burning stoves 2.0*
The moose likes JDBC and the fly likes PreparedStatement 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 "PreparedStatement" Watch "PreparedStatement" New topic
Author

PreparedStatement

Manuel Paco
Ranch Hand

Joined: Sep 23, 2001
Posts: 58
Would you please tell what is wrong with my "String query" ? . DATEVALUE('?') does not seem to work.
DATEVALUE('2001-10-10') is a MS-Access function.
Jamie Robertson
Ranch Hand

Joined: Jul 09, 2001
Posts: 1879

try losing the single quotes(not necessary with preparedStatements):

it worked for me.
Jamie

[This message has been edited by Jamie Robertson (edited October 17, 2001).]
Manuel Paco
Ranch Hand

Joined: Sep 23, 2001
Posts: 58
Thanks Jamie.
 
 
subject: PreparedStatement