mysql更新表带条件

update table set column = case column/columnB 

when 1 then 2

when 2 then 3

else 4

end;

posted @ 2019-12-25 13:58  海尚书  阅读(370)  评论(0编辑  收藏  举报