15.29 TRUNCATE_COLLECTION Procedure
Removes all members from a named collection.
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 occurs.
Syntax
APEX_COLLECTION.TRUNCATE_COLLECTION (
p_collection_name IN VARCHAR2 )
Parameters
Parameter | Description |
---|---|
p_collection_name |
The name of the collection to truncate. 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 removes all members from the DEPARTMENTS
collection.
BEGIN
APEX_COLLECTION.TRUNCATE_COLLECTION(
p_collection_name => 'DEPARTMENTS');
END;
See Also:
Parent topic: APEX_COLLECTION