PLSQL_Interview_Questions
PLSQL_Interview_Questions
1. What is PL/SQL?
PL/SQL is Oracle's procedural extension for SQL that allows writing full programs to manipulate data in the
database.
A PL/SQL block is the basic unit of a PL/SQL program. It contains DECLARE, BEGIN, EXCEPTION, and
END sections.
SQL is a query language; PL/SQL adds procedural features like loops and error handling.
A variable whose value doesn't change. Example: c_tax CONSTANT NUMBER := 0.18;
Declares a record that holds an entire row of a table. Example: v_emp employees%ROWTYPE;
Using DBMS_OUTPUT.PUT_LINE('text');
IN: input only, OUT: output only, IN OUT: input and output.