I am trying to update a access database via odbc driver through java.
Table name is form1
I am getting a syntax error when I execute this command:
updates="INSERT INTO form1
(entrydate,name,gender,month,date,phno,emailid,facebookid,address,semester,
bloodgroup,slno,college,department,liveprojects,trainings);
values("+abc+",'"+t3.getText()+"','"+t4.getText()+"',"+def+","+def1+","+zzz+",'"
+t8.getText()+"','"+t9.getText()+"','"+t10.getText()+"',"+aaaa+",'"
+t12.getText()+"',"+xyz+",'"+t13.getText()+"','"+dd+"','sa','da')";
Thank you.
;doing after the column list? (And please do read about sql injection and bind parameters.)