mybatis.xml批量修改(in)

int updateKeChengChengJi(List<String> ids);
<update id="updateUser">
    update user
        SET
        age='18'
        where id in
    <foreach close=")" collection="list" item="listItem" open="(" separator=",">
        #{listItem}
    </foreach>
</update>

版权声明:本文为qq_38410795原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。