aspose file tools*
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
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
 
Similar Threads
Problem with preapred Statement
Datasource Connection
howto modify database structure ?
How to read/write Blob images using Hibernate
How to display data from database to JSP Page in Struts2