By admin | January 25, 2008

Loop in PL/SQL

The example given below shows a While Loop. Here the value of the variable I is checked to ascertain whether it is less than 10 and as long as it is so the body of the loop will be executed. DECLARE I NUMBER (4) :=0; BEGIN WHILE (I<10) LOOP I:= I+1; DBMS_OUTPUT.PUT_LINE (I); END LOOP; END;
Ad
Ad

Forum

Calendar

August 2008
M T W T F S S
« Jun «-»  
 123
45678910
11121314151617
18192021222324
25262728293031

Search

Polls

  • Who will rule the world?

    View Results

    Loading ... Loading ...