Guest User

Untitled

a guest
Nov 19th, 2017
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.60 KB | None | 0 0
  1. String query= "INSERT INTO `chemistry`(Question, Answer, A:, B:, C:, D:) VALUES ('"+jTextField_Question.getText()+"' , '"+jTextField_Answer.getText()+"' , '"+jTextField_A.getText()+"' , '"+jTextField_B.getText()+"', '"+jTextField_C.getText()+"', '"+jTextField_D.getText()+"')" ;
  2.  
  3. com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ':, B:, C:, D:) VALUES ('ertyjk' , '' , '' , '', '', )' at line 1
  4. at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
Add Comment
Please, Sign In to add comment