在mybatis 中如何防止 IN里面的参数过多?

代码示例:

select xsid from zhxg_gy_ssfp_cwfp
where xsid in
<foreach collection="list" item="item" open="(" close=")" separator=" " index="index">
<if test="(index % 999)== 998"> NULL )OR xsid IN(</if>#{item}
</foreach>

相关推荐

  1. MyBatisMapper传递参数四种方法详解

    2024-06-17 22:06:01       46 阅读
  2. 如何SpringBoot集成MyBatis

    2024-06-17 22:06:01       39 阅读
  3. MyBatis(35)如何 MyBatis 实现软删除

    2024-06-17 22:06:01       28 阅读

最近更新

  1. docker php8.1+nginx base 镜像 dockerfile 配置

    2024-06-17 22:06:01       98 阅读
  2. Could not load dynamic library ‘cudart64_100.dll‘

    2024-06-17 22:06:01       106 阅读
  3. 在Django里面运行非项目文件

    2024-06-17 22:06:01       87 阅读
  4. Python语言-面向对象

    2024-06-17 22:06:01       96 阅读

热门阅读

  1. css预处理是什么?作用是什么?

    2024-06-17 22:06:01       29 阅读
  2. 一千题,No.0064(螺旋矩阵)

    2024-06-17 22:06:01       25 阅读
  3. MinIO:构建未来的开源对象存储解决方案

    2024-06-17 22:06:01       28 阅读
  4. LeetCode-day11-2813. 子序列最大优雅度

    2024-06-17 22:06:01       31 阅读
  5. Android Root全教程

    2024-06-17 22:06:01       27 阅读
  6. Django 使用Apscheduler执行定时任务

    2024-06-17 22:06:01       30 阅读
  7. git入门

    git入门

    2024-06-17 22:06:01      35 阅读
  8. SpringMVC的控制器方法的一些要点

    2024-06-17 22:06:01       32 阅读
  9. 深入解析Spring Boot的常用注解和组件(上)

    2024-06-17 22:06:01       24 阅读
  10. 一文详解选择低代码开发平台的六大理由

    2024-06-17 22:06:01       34 阅读
  11. 优化yarn在任务执行时核数把控不准确的问题

    2024-06-17 22:06:01       33 阅读
  12. ZC2205-24V500mAUltralow-Quiescent-Current LDO

    2024-06-17 22:06:01       21 阅读
  13. MySQL触发器基本结构

    2024-06-17 22:06:01       32 阅读