mysql根据条件执行update语句

wolf_cyj 2010-06-11
update memberstat set score=(case when coin>5 then 100 when coin<5 then 200 else 300 end) where userid='aaa';
miaojihao 2010-06-12
如果要改成if else 改如何写呢....
wolf_cyj 2010-08-10
上面的就是有else的啊
Global site tag (gtag.js) - Google Analytics