sql语句 数量超过100的商店增加%的折扣 怎么写

2025-04-28 13:24:18
推荐回答(1个)
回答1:

请参考下列SQL语句,数量大于100的,其折扣率增加百分之十:

update 表名 set 折扣率=折扣率-0.1 where 数量>100;