The PL/SQL FOR LOOP control statement will execute a block of code, when you already know how many number of times should perform or you want loop through a block of code to specific number of time.
Unlike the PL/SQL WHILE LOOP, the number of iterations of the PL/SQL FOR LOOP is known before the loop starts. The loop is iterated between the start and end integer values.
To execute a block of code, when you already know how many number of times should perform or you want loop through a block of code to specific number of time., use the following syntax:
Let's understand how it works: