Test

Page 18

EXCEPTION_INIT Tells the compiler to associate the specified error number with an identifier that has been declared an EXCEPTION in your current program or an accessible package. See the “Exception Handling” section for more information on this pragma. INLINE Tells the compiler whether calls to a subprogram should be replaced with a copy of the subprogram. See the “Optimizing Compiler” section for more information on inline optimization. RESTRICT_REFERENCES Tells the compiler the purity level of a packaged program. The purity level is the degree to which a program does not read/write database tables and/or package variables. See the “Calling PL/SQL Functions in SQL” section for more information on this pragma. SERIALLY_REUSABLE Tells the runtime engine that package data should not persist between references. This is used to reduce peruser memory requirements when the package data is needed only for the duration of the call and not for the duration of the session. See the “Packages” section for more information on this pragma.

Statements A PL/SQL program is composed of one or more logical statements. A statement is terminated by a semicolon delimiter. The physical end-of-line marker in a PL/SQL program is ignored by the compiler, except to terminate a single-line comment (initiated by the -- symbol).

Block Structure Each PL/SQL program is a block consisting of a standard set of elements, identified by keywords (see Figure 1). The block PL/SQL Language Fundamentals

|

9


Issuu converts static files into: digital portfolios, online yearbooks, online catalogs, digital photo albums and more. Sign up and create your flipbook.