今天在执行mabtis的批量修改记录时候出现了
-Translating SQLException with SQL state '42000', error code '1064', message [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 'update ****
set pro_loan_sta' at line 8]; SQL was [] for task [
### Error updating database. Cause: 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 'update ****
网上有说是使用MYSQL的关键字。
但是看了下,这张表的字段并没有使用到关键字。
处理方法为:在jdbc的链接信息上加上
&allowMultiQueries\=true (表示允许批量处理sql语句)这句话,就可以了。