首页 > 技术文章 > mysql更新表带条件
3xiaoleilei 2019-12-25 13:58 原文
update table set column = case column/columnB
when 1 then 2
when 2 then 3
else 4
end;