RDBMS (Packages)
RDBMS (Packages)
The body defines the queries for the cursors and the code for the
subprograms.
DEFINITION :
PACKAGE ARCHITECTURE :
Both these parts are stored separately in the data dictionary. The
package specification is the required part whereas the package
body is optional, but it is a good practice to provide the body to the
package.
PACKAGE SPECIFICATION:
Package specification is also known as the package header.
END [pkg_name];
Example 1:
END emp_bonus;
/
CREATE PACKAGE BODY emp_bonus AS
END;
END emp_bonus;
Reference link.
https://docs.oracle.com/cd/B19306_01/appdev.102/b14261/packages.htm
http://www.rebellionrider.com/introduction-to-pl-sql-packages-in-oracle-
database/#.WIYwa_l97IU