Bootstrap

mybatis执行批量更新 sql语句正常 但程序中报错

原文链接:https://blog.csdn.net/ProGram_BlackCat/article/details/80446518

文章类型设置转载不会弄 忙着干活呢 记录下 上面是原文参考路径

报错情景:

mybaits语句:


update Link_relate

handing_id = #{item.handing_id}

where id=#{item.id}

控制台打印的语句:

==> Preparing: update Link_relate SET handing_id = ? where id=? ; update Link_relate SET handing_id = ? where id=?
==> Parameters: c461ae2c303b4f339cbe385fa075f78e(String), 23fa407092f748389d06305966015e7f(String), c461ae2c303b4f339cbe385fa075f78e(String), 3a0936c3f87b4bd78373d5b7be0d76b9(String)

报错信息:

SQL: update Link_relate SET handing_id = ? where id=? ; update Link_relate SET handing_id = ? where id=?
Cause: com.mysql.jdbc.exceptions.jdbc4.M

;