Like This Site? 
 
RSS Feed Follow Us 

on Twitter! Be Our Fan!

PL/SQL Packages

Share this post!
 Vote this!

Packages are stored libraries in the database, they are owned by the user schema where they're created, like table and views, this ownership makes packages schema-level objects in the database catalog, like standalone functions and procedures. Users who wish to use the package must have execute privilege on the package. You define package only-scope functions and procedures in package bodies, package only scope functions and procedures can access anything in the package specification. Normally you declare identifiers in the following order: datatypes, variables, exceptions, functions and procedures.
A PL/SQL package is away to group a set of program units (procedures/functions) together, a package is divided into two parts
  • package header - lists the interface to the package, variables/constants that are visible to the outside world
  • package body - contains the PL/SQL code  more...

0 comments:

Post a Comment