User Tools

Site Tools


kurs:schleifen
declare 
  i number;
begin
  i := 0;
  while i < 10 loop
    i := i + 1;
    dbms_output.put_line(i);
  end loop;
  
  i := 0;
  loop
    i := i + 1;
    dbms_output.put_line(i);
    exit when i >= 10;
  end loop;
  
  for c in 1..10 loop
    dbms_output.put_line(c);
  end loop;

end; 
kurs/schleifen.txt · Last modified: 2014/09/10 21:22 (external edit)