![]() Previous |
![]() Next |
Use this procedure to remove 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 will be raised.
Syntax
APEX_COLLECTION.TRUNCATE_COLLECTION (
p_collection_name IN VARCHAR2);
Parameters
Table: TRUNCATE_COLLECTION Parameters describes the parameters available in the TRUNCATE_COLLECTION procedure.
TRUNCATE_COLLECTION Parameters
| Parameter | Description |
|---|---|
|
|
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 shows how to remove all members from the DEPARTMENTS collection.
BEGIN;
APEX_COLLECTION.TRUNCATE_COLLECTION(
p_collection_name => 'DEPARTMENTS');
END;