Mode:
Duration:
1
2
3
4
5
6
7
8
DECLARE
a NUMBER := 10;
b NUMBER := 20;
sum NUMBER;
BEGIN
sum := a + b;
DBMS_OUTPUT.PUT_LINE('Sum: ' || sum);
END;Coding works best on desktop or with an external keyboard.
DECLARE
a NUMBER := 10;
b NUMBER := 20;
sum NUMBER;
BEGIN
sum := a + b;
DBMS_OUTPUT.PUT_LINE('Sum: ' || sum);
END;Coding works best on desktop or with an external keyboard.
Adds two numbers and prints the result.
DECLARE
a NUMBER := 10;
b NUMBER := 20;
sum NUMBER;
BEGIN
sum := a + b;
DBMS_OUTPUT.PUT_LINE('Sum: ' || sum);
END;PL/SQL (Procedural Language/Structured Query Language) is Oracle Corporation's procedural extension to SQL. It combines SQL's data manipulation capabilities with procedural constructs like loops, conditions, and exceptions, enabling complex business logic execution directly within the database.
Origin & Creator
Developed by Oracle Corporation in the late 1980s to extend SQL with procedural capabilities.
Industrial Note
PL/SQL is the backbone of Oracle database applications, supporting triggers, stored procedures, and batch processing in enterprise environments.