<update id="addCount">
update album set count=count+1 where id=#{id}
</update>
MyBatis中字段自加1(update更新原来的值加1运算)
最新推荐文章于 2024-05-30 15:22:08 发布
<update id="addCount">
update album set count=count+1 where id=#{id}
</update>