<update id="updateByIds">
update tmp
set extend= #{extend}::jsonb,
updated = now()
where id in
<foreach collection="ids" item="id" open="(" close=")" separator=",">
#{id}
</foreach>
</update>
java直接sql更新pgsql的jsonb字段
最新推荐文章于 2024-11-26 17:11:27 发布
本文介绍使用 MyBatis Plus 进行批量更新的方法。通过 XML 配置实现对多条记录的同时更新,展示了如何设置 JSON 类型的字段及更新时间戳。
427

被折叠的 条评论
为什么被折叠?



