出现 check the manual that corresponds to your MySQL server version 的错误解决之一

  • Post author:
  • Post category:mysql


异常如下:

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 'add where snum = '01' and time = ''' at line 1

在这里插入图片描述

这个异常是因为

SQL关键字冲突

,sql语句中表名为add,改掉后就不报错了。



版权声明:本文为weixin_44297527原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。