A friendly place for programming greenhorns!
Big Moose Saloon
Search
|
Java FAQ
|
Recent Topics
Register / Login
JavaRanch
»
Java Forums
»
Databases
»
JDBC
Author
Access DB
Grishma Dube
Ranch Hand
Joined: Jul 01, 2003
Posts: 273
posted
Nov 24, 2004 06:13:00
0
Hi,
I am trying to update a row in a Access database, with the following query.
"update inv set Flag='T' where uniq_id='"+uniq_id+"'";
I'm getting the following error:-
org.apache.jasper.JasperException: [Microsoft][ODBC Microsoft Access Driver] Too few parameters. Expected 1.
When I am trying the same query with oracle, it is working fine.
Is there any syntax difference in Access?
Grishma
Paul Sturrock
Bartender
Joined: Apr 14, 2004
Posts: 10336
I like...
posted
Nov 24, 2004 07:12:00
0
Is there any syntax difference in Access?
Yes - there are odd nuances in Access "SQL" you won't see anywhere else. But your statement should run fine in both DBs. Assuming there is a value for uniq_id that is.
JavaRanch FAQ
HowToAskQuestionsOnJavaRanch
I agree. Here's the link:
http://aspose.com/file-tools
subject: Access DB
Similar Threads
SQL exception
Problem in updating/deleting data from MS Access Database
java.sql.SQLException: [Microsoft][ODBC Microsoft Access Driver] Too few parameters.
java.sql.SQLException: [Micorsoft][ODBC Microsoft Access Driver] Too few parameters.
BatchUpdateException : getUpdateCounts doesn't work properly
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter