Caused by: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: You have an error in your SQL

Caused by: 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 'integer, major varchar(255), name varchar(255), que_follows varchar(255), user_f' at line 1

在sql注入时出现了warning,没有在数据库中新建表,出现了上面的报错;

原因:使用了mysql的关键字,像上面的“like”
 

你可能感兴趣的:(数据库)