Tài liệu PL/SQL User’s Guide and Reference phần 6

Thảo luận trong 'Căn Bản' bắt đầu bởi Thúy Viết Bài, 5/12/13.

  1. Thúy Viết Bài

    Thành viên vàng

    Bài viết:
    198,891
    Được thích:
    173
    Điểm thành tích:
    0
    Xu:
    0Xu
    What Is a Package?
    A package is a schema object that groups logically related PL/SQL types, items, and
    subprograms. Packages usually have two parts, a specification and a body, although
    sometimes the body is unnecessary. The specification (spec for short) is the interface
    to your applications; it declares the types, variables, constants, exceptions, cursors,
    and subprograms available for use. The body fully defines cursors and subprograms,
    and so implements the spec.
    As Figure 8–1 shows, you can think of the spec as an operational interface and of
    the body as a black box. You can debug, enhance, or replace a package body
    without changing the interface (package spec) to the package.
     

    Các file đính kèm:

Đang tải...