MySQL:check the manual that corresponds to your MySQL server version for the right syntax

阅读 176

2022-04-21

记录毕设项目遇到的问题与解决方法3:

出现报错:

Request processing failed; nested exception is org.springframework.jdbc.BadSqlGrammarException: 
### Error updating database.  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.....

解决方法:

数据库中有一个字段命名为condition,是数据库的特殊字符,尽量不要使用关键字命名。

精彩评论(0)

0 0 举报