PL/SQL: Programming Language For SQL
PL/SQL: Programming Language For SQL
Programming Language
For SQL
PL/SQL Introduction
• Control Flow Statements
– IF..THEN..ELSE
– EXIT
– GOTO
• Repetition Statements
– FOR..Loop
– WHILE..Loop
• Assignment Statements
• PL/SQL allows programmers to create a block of code
and send it to the RDBMS as a single command
Advantages Of PL/SQL
• Basic Advantages of Using PL/SQL
– Procedural Capabilities - Can use SQL to
retrieve rows, then process them one at a time.
– Improved Performance - SQL statements must
be processed one at a time (ex. updating several
related tables). PL/SQL allows the grouping of these
commands in a block of code, transmitting the
entire block to ORACLE for execution.
Advantages of PL/SQL (continued)