les08 pack spec tellme





Creating the Package Specification










The interactions in this eCourse require Javascript to be enabled.



 

Creating the Package Specification


previous|next





Package Specification Syntax
To create packages, you declare all public constructs in the package specification.

Specify the OR REPLACE option, if overwriting an existing package specification.
Initialize a variable with a constant value or formula within the declaration, if required; otherwise, the variable is initialized implicitly to NULL.
The package specification should contain procedure and function headings terminated by a
semicolon, without the IS (or AS) keyword and its PL/SQL block. The implementation of a
procedure or function that is declared in a package specification is done in the package body.




CREATE [OR REPLACE] PACKAGE package_name
IS|AS public type and variable declarations subprogram specificationsEND [package_name]



Example



CREATE OR REPLACE PACKAGE hr_pack
IS PROCEDURE raise_salary (p_id IN employees.employee_id%TYPE, p_percent IN NUMBER);
FUNCTION get_sal
(p_id IN employees.employee_id%TYPE)
RETURN NUMBER;END hr_pack;




 
 
 







Wyszukiwarka

Podobne podstrony:
les08 pack body 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
mBSExt KNX Pack

więcej podobnych podstron