Computer Science Canada Java and SQL: data mismatch |
Author: | deltatux [ Sat Jun 07, 2008 4:06 pm ] | ||
Post subject: | Java and SQL: data mismatch | ||
Alright, I'm having some really funky issue with this. I know it's a mismatch (obviously) and I want to know if the Compsci community members can help me solve this issue. It's been annoying me a lot of late.
The error I get when I initiate the UPDATE command: Quote: init: deps-jar: Compiling 1 source file to D:\devel\java\netbeans\Grade 12\SIN\build\classes compile: run: Error: java.sql.SQLException: [Microsoft][ODBC Microsoft Access Driver] Data type mismatch in criteria expression. Error: java.sql.SQLException: [Microsoft][ODBC Microsoft Access Driver] Data type mismatch in criteria expression. BUILD SUCCESSFUL (total time: 36 seconds) Here's a screenshot of my databases: ![]() ![]() Thanks, deltatux |
Author: | Mayb123 [ Thu May 21, 2009 12:54 pm ] |
Post subject: | Re: Java and SQL: data mismatch |
well, i'd say i know by now, but i'm looking for answers too:P it's Mitch, btw |
Author: | DemonWasp [ Thu May 21, 2009 1:28 pm ] |
Post subject: | RE:Java and SQL: data mismatch |
I could be wrong, as this is just from a Google search, but I don't think you're supposed to put single-quotes around numeric values in SQL. |
Author: | Vermette [ Thu May 21, 2009 1:56 pm ] |
Post subject: | Re: RE:Java and SQL: data mismatch |
DemonWasp @ May 21st 2009, 13:28 wrote: I could be wrong, as this is just from a Google search, but I don't think you're supposed to put single-quotes around numeric values in SQL.
I know Oracle can handle it without sweating since 8i at least. Access I don't have a clue. I google'd too and found this same post elsewhere: the OP hit quite a few sites with identical code. Also, this code scares me. |