SQL ABS()函数实例代码教程 - 返回X的绝对值。共用 一个按钮事件

SQL ABS()函数实例代码教程 - 返回X的绝对值。

1     <update id="fileCustomer">
2         update t_customer set
3         FILE = ABS(FILE-1),
4         UPDATED_USER_ID = #{userId}
5         where ID = #{customerId}
6     </update>

 

数据库字段

 

posted @ 2024-07-12 19:18  奔跑de陀螺  阅读(4)  评论(0编辑  收藏  举报