PL/SQL

PL/SQL Tutorial Introduction

PL/SQL (Procedural Language / Structured Query Language) is the procedural extension of SQL language.
PL/SQL is a programming language that provides accessing data from a relational database-oriented objects.
PL/SQL is a language with block structure.

PL/SQL Advantages

Supports the basic SQL commands
Defining and managing blocks of instructions
Management of variables, constants and cursors
Allow implementation and use complex procedures, functions and triggers
Detection and handling execution errors, exceptions

PL/SQL Blocks

PL/SQL is a language focused on blocks. These blocks are composed of procedures, functions and anonymous blocks.
A PL/SQL block is composed of three parts:
Declaration – all block objects like variable must be declared
Execution – is the place where pl/sql or sql statements are defined for the data processing
Exceptions – the place where you can catch the errors

DECLARE
	Declare Variables
BEGIN
	Execution Programs
EXCEPTION
	Errors handling
END;

PL/SQL Tutorial