top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

What is PRAGMA in PLSQL?

0 votes
459 views
What is PRAGMA in PLSQL?
posted Aug 20, 2014 by Joshva

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

0 votes

In Oracle PL/SQL, PRAGMA refers to a compiler directive or "hint" it is used to provide an instruction to the compiler. The directive restricts member subprograms to query or modify database tables and packaged variables. Pragma directives are processed at compile time where they pass necessary information to the compiler; they are not processed at runtime.

The 5 types of Pragma directives available in Oracle
1)PRAGMA AUTONOMOUS_TRANSACTION
2)PRAGMA SERIALLY_REUSABLE:
3)PRAGMA RESTRICT_REFRENCES:
4)PRAGMA EXCEPTION_INIT:
5)PRAGMA INLINE:

Example:

CREATE OR REPLACE [FUNCTION | PROCEDURE] [NAME] IS
IS    
[PRAGMA];    
BEGIN    
 ...    
 ...    
END;
answer Aug 20, 2014 by Madhavi Latha
...