SQL> set serveroutput on SQL> DECLARE 2 just_a_num NUMBER := 1; 3 BEGIN 4 WHILE (just_a_num <= 10) LOOP 5 dbms_output.put_line(just_a_num); 6 just_a_num := just_a_num + 1; 7 END LOOP; 8 END; 9 / 1 2 3 4 5 6 7 8 9 10 PL/SQL procedure successfully completed. SQL>