注册 登录
编程论坛 MySQL论坛

语句的问题.求助!谢谢。

caiyfei 发布于 2010-07-27 19:39, 2043 次点击
update monsterdrops set chance=chance*0.1 where chance>100;

如果我把它改成

update monsterdrops set chance=chance*0.1 where chance>3500;

是不是就成 XX几率大于3500的数值 就将XX的几率变为XX当前几率的10%
1 回复
#2
cnenc2010-08-03 15:46
回答: 是的.

其外,提醒一下注意语法.尽量规范点.

UPDATE `monsterdrops`
 SET `chance` = `chance` * 0.1
 WHERE  `chance` > 3500;
1