For a named collection, use this procedure to update the seq_id value of each member so that no gaps exist in the sequencing. For example, a collection with the following set of sequence IDs (1,2,3,5,8,9) becomes (1,2,3,4,5,6). If a collection does not exist with the specified name for the current user in the same session and for the current Application ID, an application error is raised.
Syntax
APEX_COLLECTION.RESEQUENCE_COLLECTION (
    p_collection_name IN VARCHAR2);
Parameters
Table 6-22 RESEQUENCE_COLLECTION Parameters
| Parameter | Description | 
|---|---|
| 
 | The name of the collection to resequence. An error is returned if this collection does not exist with the specified name of the current user and in the same session. | 
Example
This example shows how to resequence the DEPARTMENTS collection to remove gaps in the sequence IDs.
BEGIN;
    APEX_COLLECTION.RESEQUENCE_COLLECTION (
        p_collection_name => 'DEPARTMENTS');
END;
See Also:
Parent topic: APEX_COLLECTION