Basic HTML version of Foils prepared 7 October 97

Foil 28 PL/SQL Packages

From untitled presentation ARL Database Tutorial -- February 98. by Gang Cheng, C.W. Ou, Geoffrey C. Fox


The declaration of a package has two parts
  • package specification - contains the declarations of procedures (and functions), variables, constants, and exceptions that are accessible outside the package
  • package body: defines procedures (and functions), cursors, and exceptions that are declared in the package specification.
    • It also defines those PL/SQL program units and constructs (procedures, variables etc) that are only local to the package body
  • The package specification is created by CREATE PACKAGE command
  • The package body is created by CREATE PACKAGE BODY command



© Northeast Parallel Architectures Center, Syracuse University, npac@npac.syr.edu

If you have any comments about this server, send e-mail to webmaster@npac.syr.edu.

Page produced by wwwfoil on Thu Feb 5 1998