oracle的case when函数

case-when的格式: case when 'x' then 'xx' when 'xxx' then 'xxxx' else 'xxxxx' end case..when..then的意思,可以理解为: case 当某某条件(when ‘xx’) 则赋予什么值(then ‘xx’) 其中 when .. then .. 可以使用多次,表示有不同的多个条件的情况,最后以else结尾,表示排除了
相关文章
相关标签/搜索