create or replace procedure pro_name as
begin
if ... then
if ... then
if ... then
...;
end if;
end if;
end if;
end pro_name;
begin
if ... then
if ... then
if ... then
...;
end if;
end if;
end if;
end pro_name;
也可以用case语句
case var
when 1 then null;
....
end case;