标签:time 效果 pen rac 批量 utf-8 oda local type
这是mysql的配置,注意需要加上&allowMultiQueries=true配置
jdbc_url=jdbc:mysql://localhost:3306/go?useUnicode=true&characterEncoding=UTF-8&zeroDateTimeBehavior=convertToNull&allowMultiQueries=true
<update id="batchUpdate" parameterType="java.util.List">
<foreach collection="list" item="item" index="index" open="" close="" separator=";">
update channels
<set>
state=${item.state}
</set>
where id = ${item.id}
</foreach>
</update>
<update id="batchUpdate" parameterType="java.util.List">
<foreach collection="list" item="item" index="index" open="begin" close="end;" separator=";">
update channels
<set>
state=${item.state}
</set>
where id = ${item.id}
</foreach>
</update>
Mysql的配置在实际运用中成功了,Oracle的没有试过
标签:time 效果 pen rac 批量 utf-8 oda local type
原文地址:https://www.cnblogs.com/userzf/p/10737140.html