Oracle 6.0 Introduced PLSQL
PLSQL is an procedural language extension for SQL, PLSQL is an block structure programming language, When we are submitting PLSQL block into the oracle server all SQL statements are executed within SQL engine and also all procedural statements are executed within PLSQL engine, It is the combination of procedural, DML.
Syntax of Block Structures
User defined exceptions;
Select into clause;
DML, TCL statements;
Handling runtime errors;
There are to types of blocks supported by PLSQL
- Anonymous Block (or) Unnamed Block
- Named Block
- Anonymous Block:
These blocks does not have a name and also not stored in database, we cannot call these blocks in another block or in client applications.
Syntax of Anonymous Block:
- Named Blocks
These Blocks having a name and also automatically stored in database, these blocks used by all types of programmers in all applications, these are procedures, functions, triggers, packages etc.