A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Why it is not INSERTing
Joined: Nov 21, 2001
Jun 20, 2003 23:28:00
Please tell me what is the meaning of following exception
: [Microsoft][ODBC Microsoft Access Driver] Too few parameters. Expected 1.
It is occuring on the following lines
SQL= "INSERT INTO ListOfTables (TableList) VALUES (Amir)"; stat.execute(SQL);
Joined: Oct 15, 2002
Jun 21, 2003 00:10:00
Just a guess, but when you are using a
literal for a query do you need to have single quotes around the parameter value (as 'Amir')?
Philip Shanks, SCJP - Castro Valley, CA
My boss never outsources or has lay-offs, and He's always hiring. I work for Jesus! Prepare your resume!
It is sorta covered in the
JavaRanch Style Guide
subject: Why it is not INSERTing
classpath - differences between java command line argument and environment variable
Problem in RDBMS
count number of coulmns in table?
how do i do this urgent
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014