SQL>
SQL> SET ECHO ON
SQL>
SQL> declare
2 v_mynumber number := 0;
3 begin
4 loop
5 if v_mynumber > 7 then
6 exit;
7 end if;
8 v_mynumber := v_mynumber + 2;
9 end loop;
10 end;
11 /
PL/SQL procedure successfully completed.
SQL>
SQL>
SQL> --