The index variable is a PLS_INTEGER datatype number. : PLS_INTEGER « Data Type « Oracle PL / SQL






The index variable is a PLS_INTEGER datatype number.

  
SQL> BEGIN
  2    FOR i IN 1..10 LOOP
  3      dbms_output.put_line('The index value is ['||i||']');
  4    END LOOP;
  5  END;
  6  /
The index value is [1]
The index value is [2]
The index value is [3]
The index value is [4]
The index value is [5]
The index value is [6]
The index value is [7]
The index value is [8]
The index value is [9]
The index value is [10]

PL/SQL procedure successfully completed.

SQL>
SQL>

   
    
  








Related examples in the same category

1.PLS_INTEGER variable
2.Check value of PLS_INTEGER type variable
3.Assign loop counter to pls_integer type variable
4.Calculation with pls_integer
5.Count with pls_integer type variable
6.PLS_Integer type variable
7.Calculate a grand total