1.sql语句报错:
Cause: java.sql.SQLSyntaxErrorException: 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 'explain'
因为explain是sql关键字,发生了sql数据库字段和关键字冲突的问题。
2.解决方法:
1.重新定义自己的数据库字段。
2.使用反撇号(不是单引号)将操作的关键字围着,则不会报错。
如:使用`explain`