高手进来看下这个SQL语句哪里错了?为何运行没有效果

来源:百度知道 编辑:UC知道 时间:2024/05/13 01:38:11
UPDATE creature_loot_template SET ChanceOrRef = 0.01 where ChanceOrRef = 0.1 ;
运行后 ChanceOrRef 还是0.1 根本没有变成0.01 郁闷了!请高手指点一下哪里错了!
就是因为有0.1 而且使用语句后没有改 我才来问的 用where ChanceOrRef < 0.2 他就改了
用 where ChanceOrRef = 0.1 他就不改 我也纳闷,能不能用其他的语句实现呢?

update 表名 set 字段=值 where 条件

你这么写是 更改creature_loot_template表中 ChanceOrRef = 0.1的记录集中ChanceOrRef字段的直都改成0.01

你的 creature_loot_template 中ChanceOrRef的值没有是0.1的 所以没改!

你自己看一下吧

commit;

你试下提交啊,commit