oracle_mybatis批量修改数据

来源:互联网 发布:跟程序员有关的电影 编辑:程序博客网 时间:2024/06/06 19:02
<update id="updateServeOrderNo" parameterType="java.util.List">
        begin  
            <foreach collection="list" item="item" index="index" separator=";" >
            update ordermain
            <set>
             productno = #{item.productno}
            </set>
            where ORDERNO = #{item.orderno}    
            </foreach>
        ;end;
    </update>