`
jinghuainfo
  • 浏览: 1525507 次
  • 性别: Icon_minigender_2
  • 来自: 北京
文章分类
社区版块
存档分类
最新评论

单表 单字段多条件更新

 
阅读更多
<p>请问 这样多条件更新 如何写?<br>
update ods_dictionary<br>
set module_note='成功变更邮箱设置'<br>
where module_id=12<br><br>
set module_note='点击邮箱'<br>
where module_id=13</p>



<p>update ods_dictionary<br>
set module_note=decode(module_id,13,'点击邮箱营销链接等行为',14,'基础邮箱其它行为')<br>
where module_id in (14,13)</p>
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics