gpt4 book ai didi

mysql帮助需要向每一列添加数字

转载 作者:行者123 更新时间:2023-11-29 08:31:19 25 4
gpt4 key购买 nike

我需要为单列中的每个数字添加 0.25,但我不知道该怎么做。这是我需要使用单个语句将 0.25 添加到 p_rentfee 列中的所有内容的表。

p_code  p_descript      p_rentfee p_datlatefee  p_rentdays

1 Standard 2 1 5
2 New Release 3.5 3 3
3 Discount 1.5 1 5
4 Weekly Specia l 1 7

最佳答案

使用普通的更新查询。

UPDATE `table` SET `p_rentfee` = (`p_rentfee` + 0.25)

关于mysql帮助需要向每一列添加数字,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16509955/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com