6 Differences Among Collections

You might also like

You are on page 1of 1

Differences Among Collections

 Varrays has limit, nested tables and index-by tables has no limit.
 Varrays and nested tables must be initialized before assignment of elements, in index-by
tables we can directly assign elements.
 Varrays and nested tables stored in database, but index-by tables can not.
 Keys must be positive in case of nested tables and varrays, in case of index-by tables keys
can be positive or negative.
 Referencing nonexistent elements raises SUBSCRIPT_BEYOND_COUNT in both nested
tables and varrays, but in case of index-by tables NO_DATA_FOUND raises.
 Keys are sequential in both nested tables and varrays, non-sequential in index-by tables.
 Individual indexes can be deleted in both nested tables and index-by tables, but cannot be
deleted in varrays.
 Nested table stores unlimited data because it stored outside the table, but varray stored
limited data because it stored with in the table.
 Nested table allows DML but varray do not allow DML.
 Index by table and nested tables are un-bounded but varray are fixed length.
 Collections will not support constraints.
 LONG, RAW, LOB datatype are not valid in collections.
 Collections will not support developer6i,VB(GUI tools).
 JAVA supports collections.

You might also like