check the manual that corresponds to your MariaDB server version for the right syntax
今天遇到一个非常蛋疼的问题,开发环境SpringBoot+Mybatis+MySQL在批量更新数据记录时候(单一字段数值修改)多次遇到java.sql.SQLSyntaxErrorException调了JDBC版本,调了Mapper.XML的配置,调了application的配置,调了字段名(预设字段,符号,乱码等)仍旧有SQL syntax; check the manual that corr
·
今天遇到一个非常蛋疼的问题,
开发环境SpringBoot+Mybatis+MySQL
在批量更新数据记录时候(单一字段数值修改)
多次遇到java.sql.SQLSyntaxErrorException
调了JDBC版本,调了Mapper.XML的配置,调了application的配置,
调了字段名(预设字段,符号,乱码等)
仍旧有SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax的问题
直到看到了https://dongshuo.blog.csdn.net/article/details/79758765
这篇,才发现是 数据库批量写入的配置 的问题…
早该想到的,读取没问题,插入也没问题,唯独没想到测试单条
url:jdbc:mysql://localhost:3306/mei?characterEncoding=utf8&allowMultiQueries=true
更多推荐
所有评论(0)