减: update 表 set 字段=字段-100 where id=1 加: update money_user_bank set account_money=account_money+100 where id=1 除: update money_user_bank set account_money=account_money/10 where id=1 乘: update money_user_bank set account_money=account_money*10 where id=1
SQL加减乘除
最新推荐文章于 2023-12-01 20:53:53 发布
这篇博客介绍了数据库的基本操作,包括减少字段值、增加金额、除以特定数值以及乘以倍数的SQL更新语句。通过示例展示了如何使用UPDATE命令进行数学运算更新记录。

5788

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



