PreparedStatement storeNewJob = con.prepareStatement("INSERT INTO job1
(field1,field2,field3,field4,field5) VALUES (?,?,?,?,?)");
storeNewJob.setInt(1, var1);
storeNewJob.setString(2, var2);
storeNewJob.setString(3, var3);
storeNewJob.setString(4, var4);
storeNewJob.setString(5, var5);
storeNewJob.executeUpdate();
but I am getting the following error:
Syntax Error in INSERT INTO statement.
The form of the table is
jobid ->AutoNumber
field1 ->Number
field2 ->Text
field3 ->Text
field4 ->Text
field5 ->Text
The only field I am not including is jobid which is AutoNumber so
I should not have to enter a value for it.
Can anyone help.
-----------== Posted via Deja News, The Discussion Network ==----------
http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own
In article <19981015175409...@ng40.aol.com>,
-----------== Posted via Deja News, The Discussion Network ==----------
Joshua Baker
bak...@digitalaquarius.com