首页
学习
活动
专区
圈层
工具
发布
社区首页 >专栏 >多个if查询及case when 语句

多个if查询及case when 语句

作者头像
oktokeep
发布2024-10-09 09:54:47
发布2024-10-09 09:54:47
9620
举报
文章被收录于专栏:第三方工具第三方工具

concat( if(t2.`flow_flag`=1 and t1.`field_source`= '06','支付宝账号1',''), if(t2.`flow_flag`=0 and t1.`field_source`= '06','支付宝账号2',''), if(t2.`flow_flag`=1 and t1.`field_source`= '07','微信账号1',''), if(t2.`flow_flag`=0 and t1.`field_source`= '07','微信账号2','')) as '账号',

case `field_source` when 1 then '支付宝' when 2 then '微信' end as '支付来源',

本文参与 腾讯云自媒体同步曝光计划,分享自作者个人站点/博客。
原始发表:2022-07-25,如有侵权请联系 cloudcommunity@tencent.com 删除
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档