PL/SQL by Example / Package
In previous parts, most examples were demonstrated at the level of a single anonymous PL/SQL block. In practice, however, it is more appropriate to unify functionality into logical units, called packages.
In previous parts, most examples were demonstrated at the level of a single anonymous PL/SQL block. In practice, however, it is more appropriate to unify functionality into logical units, called packages.
Named blocks include procedures and functions. These can be called repeatedly. The declarative section within both types of methods is indicated by the keyword IS
, which is mandatory. Further division into the executable part and the exception handling part is identical to anonymous blocks.
For cyclical repetition of a code block, PL/SQL provides the FOR
and WHILE
constructs.
The topic of structures capable of holding multiple values is somewhat extensive due to the division of the Oracle database into an SQL part and a procedural PL/SQL extension. Also, individual database versions bring slight differences in the use of given structures.
Data types in PL/SQL are divided into three basic categories: scalar, composite, and reference. Scalar types typically store only a single value, composite types hold arrays of values, or they can be more complex structures like records or objects. A reference data type serves as a pointer.
A PL/SQL program consists of anonymous and named blocks. Anonymous blocks are mainly used to separate logical parts of the program and to control exception handling.
In this three-part article, I will try to peek under the lid of one of the most successful IT companies in the world, delve into the background of the creation of its most famous database product, and I will not forget to analyze the individual milestones the company went through and through which it consequently influenced Internet users worldwide.
In this three-part article, I will try to peek under the lid of one of the most successful IT companies in the world, delve into the background of the creation of its most famous database product, and I will not forget to analyze the individual milestones the company went through and through which it consequently influenced Internet users worldwide.
In this three-part article, I will try to peek under the lid of one of the most successful IT companies in the world, delve into the background of the creation of its most famous database product, and I will not forget to analyze the individual milestones the company went through and through which it consequently influenced Internet users worldwide.