select e.empno
,e.ename
,case
when e.deptno = 10 then '壹拾'
when e.deptno = 20 then '贰拾'
when e.deptno = 30 then '叁拾'
else '无'
end as chineseDeptNO
from emp e
Oracle数据库case的作用,查询很管用的
最新推荐文章于 2024-03-31 06:04:38 发布