case when then end 用法

select type,numbers,case monthst
when 1 then '一月'
when 2 then '二月'
when 3 then '三月'
else '其他月'
end monthst from capacity;

posted @ 2019-04-23 11:05  笔记Next  阅读(343)  评论(0编辑  收藏  举报