为了账号安全,请及时绑定邮箱和手机立即绑定

这个能否用case then 呢?

oracle中能用case then 吗?

正在回答

2 回答

select ci.ci_id CID,wm_concat(case when instr(stu_ids,stu.stu_id) > 0 then stu.stu_name end) SNAME
from pm_ci ci,pm_stu stu
group by ci.ci_id

0 回复 有任何疑惑可以回复我~

有case……when 

case 字段名 when 值 then 结果(else 结果)end

eg:selct username ,case username when 'aaa'then '计算机'else '其他' end as 部门 from emp

或者

case when 列名=值 then 结果 else结果 end from 表名。


0 回复 有任何疑惑可以回复我~

举报

0/150
提交
取消

这个能否用case then 呢?

我要回答 关注问题
微信客服

购课补贴
联系客服咨询优惠详情

帮助反馈 APP下载

慕课网APP
您的移动学习伙伴

公众号

扫描二维码
关注慕课网微信公众号