|
I'm trying to do a 'Select' statement over and Access database that has
a field defined as Date/Time
I've tried String query = "select cast(logdate as date) from
AuditTrail";
ResultSet rs = stmt.executeQuery(query);
but I get a SQLSTATE 37000
detailMessage= "[Microsoft][ODBC Microsoft Access Driver] Syntax error
(missing operator) in query expression 'cast(logdate as date)'."
I can't figure out what I have wrong with this statement.
Michael Smith
iSeries.mySeries.
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.