异常如下:
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,改掉后就不报错了。