【文件属性】:
文件名称:case when和sum case when 写法及拼接字段
文件大小:15KB
文件格式:DOCX
更新时间:2019-06-24 15:38:00
case when,拼接
1 case when 写法
2 sum case when 用法
3 select 拼接字段
示例如下:
when 2 then 'C'
else 'D'
end ) as '类型',count(*) as '数量'
from table
group by orderType