what is package in oracle with example
Term: PACKAGE. In Oracle PL/SQL, a PACKAGE is a group of programmatic constructs combined (packaged) into a single unit. The PL/SQL elements that may be included in a package are cursors, variables, exceptions, PL/SQL records and collection types, procedures, and functions.
Term: PACKAGE. Definition: In Oracle PL/SQL, a PACKAGE is a group of programmatic constructs combined (packaged) into a single unit. The PL/SQL elements that may be included in a package are cursors, variables, exceptions, PL/SQL records and collection types, procedures, and functions.
Example of a PL/SQL Package. In the example below, you package a record type, a cursor, and two employment procedures. Notice that the procedure hire_employee uses the database sequence empno_seq and the function SYSDATE to insert a new employee number and hire date, respectively.