相关推荐recommended
全网多种方法解决You have an error in your SQL syntax; check the manual that corresponds to your MySQL server
作者:mmseoamin日期:2024-01-22

文章目录

  • 1. 复现错误
  • 2. 分析错误
  • 3. 解决错误
  • 4. 解决该错误的其他方法

1. 复现错误


今天在调试低代码的接口,突然报出如下的错误

全网多种方法解决You have an error in your SQL syntax; check the manual that corresponds to your MySQL server,在这里插入图片描述,第1张

即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 'desc,name,is_deleted ) VALUES('测试哈','测试哈','测试项目',1 )' at line 11。

于是,查看控制台报出的详细错误信息,如下图所示:

java.sql.SQLSyntaxErrorException: You have an error in your SQ