📅  最后修改于: 2022-03-11 15:05:01.849000             🧑  作者: Mango
create procedure ora_sp_decode2 (out job_level TEXT )
begin
select CASE job_lvl
WHEN 1 THEN 'level 1
WHEN 2 THEN 'level 2'
ELSE 'Unknown level' end
into job_level from employee where job_id>0 ;
end ;