关于oracle的case语句
发布网友
发布时间:2022-04-11 01:00
我来回答
共3个回答
懂视网
时间:2022-04-11 05:21
(case
when (1 > 2) then
‘yes‘
when (2 = 2) then
‘no‘
else
‘other‘
end) --no
from dual;
oracle之case
标签:cas rom pre font div The from col sele
热心网友
时间:2022-04-11 02:29
select ename,
case
when sal<1000 then 'lower'
when sal>1001 and sal<2000 then 'modest'
when sal>2001 and sal<4000 then 'high'
else 'too high'
end
from emp;
热心网友
时间:2022-04-11 03:47
就是这个了
select ename,
case
when sal<1000 then 'lower'
when sal>1001 and sal<2000 then 'modest'
when sal>2001 and sal<4000 then 'high'
else 'too high'
end
from emp;