les08 pack body tellme





Creating the Package Body













The interactions in this eCourse require Javascript to be enabled.



 

Creating the Package Body


previous|next





Package Body Syntax
The package body must complete the implementation for all procedures or functions
declared in the package specification.

Specify the OR REPLACE option to overwrite an existing package body.
Define the subprograms in an appropriate order. The basic principle is that you must
declare a variable or subprogram before it can be referenced by other components in the
same package body. It is common to see all private variables and subprograms defined first
and the public subprograms defined last in the package body.




CREATE [OR REPLACE] PACKAGE BODY package_name
IS|AS private type and variable declarations subprogram bodies [BEGIN initialization statements]END [package_name];










subprogram specification specifies the full implementation of any private and/or
public procedures or functions.












private type and variable declarations declares private variables,
constants, cursors, exceptions, user-defined types, and subtypes.





 







[BEGIN initialization statements] is an optional block of initialization code
that executes when the package is first referenced.












package_name specifies a name for the package that must be the same as its package specification. Using the package name after the END keyword is optional.





 







Wyszukiwarka

Podobne podstrony:
les08 pack spec tellme
les08 pack tellme1
les08 man triggers tellme
les08 func cre tellme1
les08 func cre tellme2
les08 cre block1 tellme
les08 pack whylearnit
les08 cre block2 tellme
les08 audit trigger1 tellme
les08 proc cre tellme2
les08 cre anonymous1 tellme
les08 cre triggers tellme
les08 proc cre tellme1
les08 cre dmltriggers1 tellme
les08 pack showme
les08 except tellme1
les08 except tellme3
les08 except tellme2

więcej podobnych podstron