If elsif else end if
set serverout on;
declare per_dep_count number;
begin
select count(*) into per_dep_count from emp;
if per_dep_count>0 then
dbms_output.put_line('Big Than 0');
elsif per_dep_count>5 then <span style="font-size:24px;color:#ff0000;"><strong>--elsif not elseif!!!!
</strong></span> dbms_output.put_line('Big Than 5');
else
dbms_output.put_line('En?');
end if;
end;
declare per_dep_count number;
begin
select count(*) into per_dep_count from emp;
case per_dep_count
when 1 then
dbms_output.put_line('1');
when 2 then
dbms_output.put_line('2');
else
dbms_output.put_line('else');
end case;
end;
declare per_dep_count number;
begin
select count(*) into per_dep_count from emp;
case
when per_dep_count=1 then
dbms_output.put_line('1');
when per_dep_count=2 then
dbms_output.put_line('2');
else
dbms_output.put_line('else');
end case;
end;
declare v_id number:=0; begin while v_id<5 loop v_idv_id:=v_id+1; dbms_output.put_line(v_id); end loop; end;
declare v_id number:=0; begin for v_id in 1..5 loop dbms_output.put_line(v_id); end loop; end;
机械节能产品生产企业官网模板...
大气智能家居家具装修装饰类企业通用网站模板...
礼品公司网站模板
宽屏简约大气婚纱摄影影楼模板...
蓝白WAP手机综合医院类整站源码(独立后台)...苏ICP备2024110244号-2 苏公网安备32050702011978号 增值电信业务经营许可证编号:苏B2-20251499 | Copyright 2018 - 2025 源码网商城 (www.ymwmall.com) 版权所有