
- Learn MySQL
- MySQL - Home
- MySQL - Introduction
- MySQL - Installation
- MySQL - Administration
- MySQL - PHP Syntax
- MySQL - Connection
- MySQL - Create Database
- MySQL - Drop Database
- MySQL - Select Database
- MySQL - Data Types
- MySQL - Create Tables
- MySQL - Drop Tables
- MySQL - Insert Query
- MySQL - Select Query
- MySQL - Where Clause
- MySQL - Update Query
- MySQL - Delete Query
- MySQL - Like Clause
- MySQL - Sorting Results
- MySQL - Using Join
- MySQL - NULL Values
- MySQL - Regexps
- MySQL - Transactions
- MySQL - Alter Command
- MySQL - Indexes
- MySQL - Temporary Tables
- MySQL - Clone Tables
- MySQL - Database Info
- MySQL - Using Sequences
- MySQL - Handling Duplicates
- MySQL - SQL Injection
- MySQL - Database Export
- MySQL - Database Import
Difference between SQL and PL/SQL
SQL, Structural Query Language is a standard database language which is used create, maintain and retrieve the relational database whereas PL/SQL, Procedural Language extension to SQL, it extends SQL and provide it procedural capabilities.
Following are the important differences between SQL and PL/SQL.
Sr. No. | Key | SQL | PL/SQL |
---|---|---|---|
1 | Definition | SQL, is Structural Query Language for database. | PL/SQL is a programming language using SQL for a database. |
2 | Variables | SQL has no variables. | PL/SQL has variables, data types etc. |
3 | Control Structures | SQL has no FOR loop, if control and similar structures. | PL/SQL has FOR loop, while loop, if controls and other similar structures. |
4 | Operations | SQL can execute a single operation at a time. | PL/SQL can perform multiple operation at a time. |
5 | Language Type | SQL is a declarative language. | PL/SQL is a procedural language. |
6 | Embedded | SQL can be embedded in a PL/SQL block. | PL/SQL can also be embedded in SQL code. |
6 | Interaction | SQL directly interacts with database server. | PL/SQL does not directly interacts with database server. |
7 | Orientation | SQL is data oriented language. | PL/SQL is application oriented language. |
8 | Objective | SQL is used to write queries, create and execute DDL and DML statments. | PL/SQL is used to write program blocks, functions, procedures, triggers and packages. |
- Related Articles
- Difference Between T-SQL and PL-SQL
- Difference Between SQL and T-SQL
- What is PL/SQL?
- Difference between Static SQL and Dynamic SQL
- Difference between SQL(Structured Query Language) and T-SQL(Transact-SQL).
- Difference between SQL and NoSQL
- Reverse a Number in PL/SQL
- Difference between Open SQL, Native SQL in SAP HANA
- Block of PL/SQL in Oracle DBMS
- Print pyramid of tutorialspoint in PL/SQL
- Program for Fibonacci numbers in PL/SQL
- Explain the PL/SQL Engine in DBMS
- Floyd's triangle in PL/SQL
- Difference between MySQL and SQL Server
- Difference between Oracle and SQL Server

Advertisements