cursor for loop code example
Example 1: for cursor plsql
FOR record_name IN cursor_name
LOOP
statement1;
statement2;
. . .
END LOOP;
Example 2: for select oracle
FOR <Loop_index> IN (<Select_statement>)
LOOP
<Executable_statements>;
END LOOP [<Loop_index>];
Example 3: pl sql for each loop
FOR record IN cursor_name
LOOP
process_record_statements;
END LOOP;