日期:2014-05-18 浏览次数:20616 次
update tb set Anuma=case when Anuma=0 then 1 when Anuma=1 then 0 else Anuma end
------解决方案--------------------
update tb set anuma = (case anuma when 1 then 0 when 0 then 1 else anuma end)
------解决方案--------------------
UPDATE tb SET Anuma=CASE( WHEN Anuma=0 THEN 1 WHEN Anuma=1 THEN 0 )