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

Google Advertisment

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

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

For Projects 9999595223

Google Advertisements


Buy Websites 9999595223

Buy College Projects with Documentation Contact on whatsapp 9999595223. Contact on: hitesh.xc@gmail.com or 9999595223 Try this Keyword C++ Programs

Advertisements