java插入数据至mysql数据库报错:check the manual that coresponds to your mysql server version for the right synt
Posted achived
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了java插入数据至mysql数据库报错:check the manual that coresponds to your mysql server version for the right synt相关的知识,希望对你有一定的参考价值。
mysql5.X(本地数据库)
使用java向表中插入数据时,每次数据库更新,pstm.executeUpdate();就会跳到IO报错,提示原因是sql语法有问题,如题可见
当测试插入数据不含condition字段时,插入成功,尝试更名为conDition时,仍报错
解决方案:
更改condition为conDi,原因可能时因为condition为数据库或java关键字不能使用,更名后不再受影响,插入成功。
以上是关于java插入数据至mysql数据库报错:check the manual that coresponds to your mysql server version for the right synt的主要内容,如果未能解决你的问题,请参考以下文章