oracle mybatis 批量更新

来源:互联网 发布:ps4网络设置dns 编辑:程序博客网 时间:2024/06/08 06:21
 <update id="updateAllBmd" parameterType="java.util.List">    begin          <foreach collection="list" item="item" index="index" separator=";" >             update  zl_gqxt.t_bmd             <set>                    hpzl = #{item.hpzl},                       cllx= #{item.cllx},                               </set>            where hphm = #{item.hphm}            </foreach>         ;end;    </update>