1.) What is PL/SQL?
PL SQL is a procedural language which has interactive SQL, as well as procedural
programming language constructs like conditional branching and iteration.
Advantages:
-----------
Reduces network traffic -This one is great advantages of PL/SQL. Because PL/SQL
nature is entire block of SQL statements execute into oracle engine all at once so
it's main benefit is reducing the network traffic.
Procedural language support -PL/SQL is a development tools not only for data
manipulation futures but also provide the conditional checking, looping or
branching operations same as like other programming language.
Error handling PL/SQL -is dealing with error handling, It's permits the smart way
handling the errors and giving user friendly error messages, when the errors are
encountered.
Declare variable -PL/SQL gives you control to declare variables and access them
within the block. The declared variables can be used at the time of query
processing.
Intermediate Calculation -Calculations in PL/SQL done quickly and efficiently
without using Oracle engines. This improves the transaction performance.
Portable application -Applications are written in PL/SQL are portable in any
Operating system. PL/SQL applications are independence program to run any computer.