Which collection is good for collecting information whose volume is unknown?
Category:
technology and computing
databases
Associative arrays are appropriate for relatively small lookup tables where the collection can be constructed in memory each time a procedure is called or a package is initialized. They are good for collecting information whose volume is unknown beforehand, because there is no fixed limit on their size.
Similarly, you may ask, what are Oracle collections used for?
A collection can be loosely defined as a group of ordered elements, all of the same type, that allows programmatic access to its elements through an index. Commonly used collection types used in the programming world include arrays, maps, and lists. Storing elements in a collection can provide a number of advantages.
Thereof, what is PL SQL collections?
PL/SQL Collections. A collection is an ordered group of elements, all of the same type. It is a general concept that encompasses lists, arrays, and other data types used in classic programming algorithms. Each element is addressed by a unique subscript. These are similar to hash tables in other programming languages.
Collection Exceptions
Collection Exception | Raised in Situations |
---|---|
NO_DATA_FOUND | A subscript designates an element that was deleted, or a nonexistent element of an associative array. |
SUBSCRIPT_BEYOND_COUNT | A subscript exceeds the number of elements in a collection. |
SUBSCRIPT_OUTSIDE_LIMIT | A subscript is outside the allowed range. |