Home | Add to Favorites | Ebooks Directory | News  
SQL & PL/SQL  Resources
Home
SQL , PL/SQL  Article
SQL Tutorial 
Books
SQL  Questions
SQL Code
PL/SQL Tutorial
SQL Reference
PL/SQL Tutorial
 

Using Loop in Pl/SQL Sample


 

declare
 x number :=0;
 begin
loop
dbms_output.put_line('rrr'||'ggg');
 x:=x+1;
 if x=5 then exit;
end if;
end loop;
end;


 

Using for Loop in Pl/SQL Sample

 

declare
2 x number :=0;
3 begin
4 for x in 0..4 loop
5 dbms_output.put_line('hari'||'ram');
6 end loop;
7 end;

                                                          Go To Index