When I am trying to fetch data from access database ucanaccess driver is throwing this exception
net.ucanaccess.jdbc.UcanaccessSQLException: UCAExc:::4.0.4 data type cast needed
for parameter or null literal
here is the screen of my application output
Thanks
Asked
Active
Viewed 140 times
-1

Dave2e
- 22,192
- 18
- 42
- 50
1 Answers
0
Select ... WHERE ? = ?
Parameter placeholders cannot be used to specify column names. You'll need to use dynamic SQL (string formatting) to specify the column name and then use a parameter placeholder for the column value.

Gord Thompson
- 116,920
- 32
- 215
- 418
-
Thanks Gord Thompson – Danial Ghani Attari Qadri Jun 07 '18 at 15:50