15.7 COLLECTION_MEMBER_COUNT Function
Retrieves the total number of members for the named collection. If gaps exist, the total member count returned is not equal to the highest sequence ID in the collection.
If the named collection does not exist for the current user in the current session, no error occurs.
Syntax
APEX_COLLECTION.COLLECTION_MEMBER_COUNT (
p_collection_name IN VARCHAR2 )
RETURN NUMBER;Parameters
| Parameter | Description |
|---|---|
p_collection_name |
The name of the collection. |
Example
This example retrieves the total number of members in the DEPARTMENTS collection.
BEGIN
l_count := APEX_COLLECTION.COLLECTION_MEMBER_COUNT( p_collection_name => 'DEPARTMENTS');
END;Parent topic: APEX_COLLECTION