top button
Flag Notify
    Connect to us
      Facebook Login
      Site Registration

Facebook Login
Site Registration

What is PRAGMA in PLSQL?

0 votes
59 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
Contact Us
+91 9880187415
sales@queryhome.net
support@queryhome.net
#280, 3rd floor, 5th Main
6th Sector, HSR Layout
Bangalore-560102
Karnataka INDIA.
QUERY HOME
...