<if test="preIds != null and preIds.size() > 0">
AND PRE_ID IN
<trim suffixOverrides=" OR PRE_ID IN ()">
<foreach collection='preIds' open='(' close=')' index='index' item='item'>
<if test="index != 0">
<choose>
<when test="index % 1000 == 999">) OR PRE_ID IN (</when>
<otherwise>,</otherwise>
</choose>
</if>
#{item}
</foreach>
</trim>
</if>
mybatis的oracle的in超过1000的写法
转载本文章为转载内容,我们尊重原作者对文章享有的著作权。如有内容错误或侵权问题,欢迎原作者联系我们进行内容更正或删除文章。
提问和评论都可以,用心的回复会被更多人看到
评论
发布评论
相关文章
-
mybatis循环超过1000条报错的处理办法
112让3人
linq c# wpf -
mybatis =<>的写法
mybatis =<>的写法
mybatis