单表 单字段多条件更新

来源:互联网 发布:市场化营销网络 编辑:程序博客网 时间:2024/04/30 01:14

请问 这样多条件更新 如何写?
update ods_dictionary
set module_note='成功变更邮箱设置'
where module_id=12

set module_note='点击邮箱'
where module_id=13

 

 

 

update ods_dictionary
set module_note=decode(module_id,13,'点击邮箱营销链接等行为',14,'基础邮箱其它行为')
where module_id in (14,13)

原创粉丝点击