15.15 CREATE_OR_TRUNCATE_COLLECTION Procedure
Creates a collection. If a collection exists with the same name for the current user in the same session for the current application ID, all members of the collection are removed (the named collection is truncated).
Syntax
APEX_COLLECTION.CREATE_OR_TRUNCATE_COLLECTION (
p_collection_name IN VARCHAR2 )
Parameters
Parameter | Description |
---|---|
p_collection_name |
The name of the collection. The maximum length is 255 characters. All members of the named collection are removed if the named collection exists for the current user in the current session. |
Example
This example removes all members in an existing collection named EMPLOYEES
.
BEGIN
APEX_COLLECTION.CREATE_OR_TRUNCATE_COLLECTION(
p_collection_name => 'EMPLOYEES');
END;
See Also:
Parent topic: APEX_COLLECTION