com.mysql.jdbc.exceptions.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 'like,note) values (?,?,?,?,?,?,?,?,?,?)' at line 1
向mysql中插入数据时报错,错误提示如下,代码如下
- 写回答
- 好问题 0 提建议
- 关注问题
- 邀请回答
-
3条回答 默认 最新
xuxi_csdn 2015-12-23 08:54关注您好,您这个是因为like是数据库关键字,您可以把like这个字段换掉或者~like~这么写一下试试
本回答被题主选为最佳回答 , 对您是否有帮助呢?解决 无用评论 打赏 举报