PRAGMA RESTRICT_REFEREN
PRAGMA RESTRICT_REFERENCES Oracle
PRAGMA RESTRICT_REFERENCES uses to control the side effects of PL/SQL Subprograms. Every PL/SQL Subprograms must follow some rules in terms of transaction control and security.
What is PRAGMA
PRAGMA is an instruction or a hint or information to the compiler. Pragmas are processed at compile time, not at run time.
Syntax :-
CREATE OR REPLACE PACKAGE pkg_salary
IS
function get_emp_salary(p_empno integer) return number;
PRAGMA restrict_references(get_emp_salary, RNDS, RNPS, WNDS, WNPS);
END pkg_salary;
Advertising