异常如下:
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 版权协议,转载请附上原文出处链接和本声明。