Collections:
Types of Execution Flow Control Statements in Oracle
What Are the Execution Control Statements in Oracle?
✍: FYIcenter.com
PL/SQL supports three groups of execution control statements:
The script below shows some execution control statements:
DECLARE
total NUMBER;
BEGIN
total := 0;
LOOP
total := total+1;
IF total >= 10 THEN
GOTO print;
END IF;
END LOOP;
<<;print>>
DBMS_OUTPUT.PUT_LINE('Total counts: ' || TO_CHAR(total));
END;
This script should print this:
Total counts: 10`
⇒ Use "IF" Statements with Multiple Conditions in Oracle
⇐ Convert Character Types to Numeric Types in Oracle
2018-11-17, 2173🔥, 0💬
Popular Posts:
Where to find answers to frequently asked questions I am new to Oracle database. Here is a list of f...
What Is a Parameter File in Oracle? A parameter file is a file that contains a list of initializatio...
Where to find Oracle database server tutorials? Here is a collection of tutorials, tips and FAQs for...
Can Date and Time Values Be Converted into Integers in SQL Server Transact-SQL? Can date and time va...
How To Count Rows with the COUNT(*) Function in SQL Server? If you want to count the number of rows,...