For Loop in PL/SQL

Advertisements

PLSQL Conditional Statement While Loop in PLSQL

For Loop in PL/SQL

Set of instructions given to the compiler to execute set of statements until condition becomes false is called loops. The basic purpose of loop is code repetition that means same code repeated again and again. Here we discuss for loop in PLSQL

A for loop is used to execute a set of statements for a predetermined number of times.

for loop in plsql

Syntax

for variable in initial_value .. final_value

loop

statements;

end loop;

Print Hello word five times

Example of For Loop in PLSQL

begin
for i in 1 .. 4 loop
dbms_output.put_line("Hello");
end loop;
end;

Output

Hello
Hello
Hello
Hello
Hello

PLSQL Conditional Statement While Loop in PLSQL

Advertisements

Buy This Ad Space @$20 per Month, Ad Size 600X200 Contact on: hitesh.xc@gmail.com or 8076671483

Pure VPN Privide Lowest Price VPN Just @ $1.65. Per Month with Non Detected IP Lowest Price Non Detected IP VPN

Magenet is best Adsense Alternative here we earn $2 for single link, Here we get links ads. Magenet

Download Projects