To fetch elements, one at a time, from a collection variable,
use the FETCH statement and the INTO clause.
The FETCH statement identifies the select cursor that
is associated with the collection variable. The INTO clause
identifies the host variable for the element value that is fetched
from the collection variable. The data type of the host variable
in the INTO clause must be compatible with the element type of the
collection.
The following figure contains a code fragment that
selects all elements from the set_col column (see Sample tables with collection columns) into
the typed collection host variable called a_set then
fetches these elements, one at a time, from the a_setcollection variable.