0
点赞
收藏
分享

微信扫一扫

mybatis循环超过1000条报错的处理办法

TiaNa_na 2022-08-29 阅读 154


<where>
and a.id in
<foreach collection="ids" index="index" item="item" open="(" separator="," close=")">
<if test="(index % 999) == 998"> NULL ) OR a.id IN (</if>#{item,jdbcType=NVARCHAR}
</foreach>
</where>

举报

相关推荐

0 条评论