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>
数据库字段