The case statement is supported by PL/SQL. The problem may be with your PL/SQL procedure. The below procedure works:
declare
temp varchar2(100);
cursor cdet is
select
case
when length('pippo - pluto - paperino' )>5 then
'OK'
else
'No'
end
from dual;
begin
open cdet;
fetch cdet into temp;
-- while cdet%found loop
dbms_output.put_line('temp '||temp);
-- fetch cdet into temp;
-- end loop;
close cdet;
end;
|