SQL Vs PL/SQL

 

FeatureSQL (Structured Query Language)PL/SQL (Procedural Language/SQL)
TypeNon-procedural (Declarative).Procedural Language.
FocusWhat data to get or change.How to process data using logic.
LogicExecutes one statement at a time.Uses blocks, loops, and IF-THEN logic.
VariablesDoes not support variables.Supports variables, constants, and types.
Error HandlingNo built-in error handling.Uses an EXCEPTION section for errors.
ExecutionEach command is sent individually.A whole block is sent to the server at once.
PerformanceHigh network traffic for multiple queries.Lower network traffic (bundled execution).