sql多个条件更新

来源:互联网 发布:超级玛丽c语言源代码 编辑:程序博客网 时间:2024/06/01 18:41
update consumer set names=case id/*when 1 then '5'*/when 2 then '5'end,loginName=case idwhen 1 then '6'when 2 then '2'endwhere id in (1,2);

原创粉丝点击