1BEGIN
2 IF NOT APEX_COLLECTION.COLLECTION_EXISTS('EMPLOYEE_CL') THEN
3 APEX_COLLECTION.CREATE_COLLECTION('EMPLOYEE_CL');
4 ELSE
5 APEX_COLLECTION.TRUNCATE_COLLECTION('EMPLOYEE_CL');
6 END IF;
7 -- Or
8 APEX_COLLECTION.CREATE_OR_TRUNCATE_COLLECTION('EMPLOYEES_CL');
9END;