Oracle
1、MyBatis中批量插入
可以解决 oracle in中超过1000个参数报错
select * from table a
<where>
<if test="list != null and list.size > 0">
and a.name in
<foreach collection="list" index="index" item="item" open="(" separator="," close=")">
<if test="(index % 999) == 998"> ) or a.name in (</if> #{item}
</foreach >
</if>
</where>
或者
<select id="selectUserIds" parameterType="java.util.List" resultType="String">
select USER_ID from WFJT_USER_INFO where USER_ID in
<foreach collection="list" item="item" index="index" open="(" close=")">
<if test="index !=0">
<choose>
<when test="index % 1000 == 999">) OR USER_ID IN (</when>
<otherwise>,</otherwise>
</choose>
</if>
#{item}
</foreach>
</select>
2、MyBatis中批量更新
的用marge
3,新增字段
ALTER TABLE PAY_ORDER ADD INDUSTRY_NO VARCHAR2(100) NULL;
COMMENT ON COLUMN INDUSTRY_NO IS '行业缴费唯一编号';
日夜颠倒头发少 ,单纯好骗恋爱脑 ,会背九九乘法表 ,下雨只会往家跑 ,搭讪只会说你好 ---- 2050781802@qq.com