16CSS14 Oracle - Group VIII Map Code: F Faculty: B.DEEPA Department of Information Technology
16CSS14 Oracle - Group VIII Map Code: F Faculty: B.DEEPA Department of Information Technology
PL/SQL:
Stands for “Procedural Language extension to SQL”
Is Oracle Corporation’s standard data access language for
relational databases
Seamlessly integrates procedural constructs with SQL
PL/SQL:
Provides a block structure for executable units of
code. Maintenance of code is made easier with such a
well-defined structure.
Provides procedural constructs such as:
Variables, constants, and data types
Control structures such as conditional statements and loops
Reusable program units that are written once and executed
many times
procedural Procedural
PL/SQL statement
block executor
SQL
SQL statement
executor
SQL 1
SQL 2
…
SQL
IF...THEN
SQL
ELSE
SQL
END IF;
SQL
DECLARE (optional)
Variables, cursors, user-defined exceptions
BEGIN (mandatory)
SQL statements
PL/SQL statements
EXCEPTION (optional)
Actions to perform
when errors occur
END; (mandatory)
Anonymous Procedure
Function
Run Script
2
DBMS Output
Tab