What is the syntax for creating a package specification?

Are you preparing for IT certification? With practice questions, study notes, interactive quizzes, tips and technical articles, uCertify PrepKits ensure that you get a solid grasp of core technical concepts to ace your certification exam in first attempt.

What is the syntax for creating a package specification?

Rating:

Following is the syntax for creating a package specification:

CREATE [OR REPLACE] PACKAGE package_name
IS | AS
public type and item declarations
subprogram specifications
END package_name;


where,

  • OR REPLACE option specifies that if the package specification already exists, it will be dropped and replaced with the new version created by the statement.

  • package_name specifies the name of the package.

  • public type and item declarations declare variables, constants, cursors, exceptions, or types. If a variable is not initialized with a constant value or expression within the declaration, the variable is implicitly initialized to NULL.

  • subprogram specifications declare the PL/SQL subprograms (functions and procedures).


  • All the constructs declared in a package specification are visible to users who are granted privileges on the package.


    Rating:



    Other articles

    Click here to Article home

     
    uCertify.com | Our Company | Articles | Privacy | Security | Contact Us | News and Press Release | uCertify India
    MCSE: MCSA, MCTS, MCITP    JAVA Certification: SCJP, SCWCD Cisco Certification: CCNA, CCENT, A+, Network+, Security+
    Oracle Certification: OCP 9i, OCP 10g, OCA 9i, OCA 10g CIW foundation    EC-212-32    CISSP    Photoshop ACE    Adobe Flash ACE
    © 2008 uCertify.com. All rights reserved. All trademarks are the property of their respective owners.