|
PL/SQL collections are the composite types. These are group of elements, which can be manipulated individually, and are similar to arrays in C. There are three types of collections in PL/SQL given as follows:-
Index by tables or associative arrays – Contains elements of same datatype indexed by an integer. The number of elements in associative arrays is not limited.
- Nested tables – Refer to the tables that can be used in SQL statements and bulk insert operation.
- Variable arrays – Refer to the tables that can be used in SQL statements and stored in database tables, such as nested tables. However, they can hold a limited number of elements.
|