我是批量修改数据,用foreach标签包住update语句,报错信息如下:
nested exception is java.sql.SQLSyntaxErrorException: 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 biz_invoice_newSET BUSINESS_CHANNEL = '02',' at line 14
最后解决,在数据源配置中添加参数: