0


Mybatis | 开发实用技巧

一、Foreach 安全操作,避免数据误伤

在开发中,通常会遇到批量按主键批量更新记录状态这样场景,例如,

  1. <updateid="updateStatusByPrimaryKeyBatch">
  2. update post
  3. set status = 'published'
  4. <where>
  5. and id in
  6. <foreachitem=
标签: java mybatis 源码

本文转载自: https://blog.csdn.net/u010141779/article/details/122422218
版权归原作者 u一枚蒟蒻 所有, 如有侵权,请联系我们删除。

“Mybatis | 开发实用技巧”的评论:

还没有评论