Answers for "apex collection add element"

SQL
3

apex collection add element

BEGIN
  APEX_COLLECTION.ADD_MEMBER(
          P_COLLECTION_NAME => 'EMPLOYEE_COLLECTION',
          P_C001 => :P2_EMP_NO,
          P_C002 => :P2_EMP_NAME
      );
END;
Posted by: Guest on July-14-2021
2

apex collection add element

DECLARE
    CURSOR c_emp IS
        SELECT EMP_NO, EMP_NAME FROM EMP;
BEGIN
    IF NOT APEX_COLLECTION.COLLECTION_EXISTS('EMPLOYEE_COLLECTION')
    THEN APEX_COLLECTION.CREATE_COLLECTION('EMPLOYEE_COLLECTION');
    ELSE APEX_COLLECTION.TRUNCATE_COLLECTION('EMPLOYEE_COLLECTION');
    END IF;

    FOR c IN c_emp
        LOOP
            APEX_COLLECTION.ADD_MEMBER(P_COLLECTION_NAME => 'EMPLOYEE_COLLECTION',
                                       P_C001 => c.EMP_NO,
                                       P_C002 => c.EMP_NAME
                );
        END LOOP;
END;
Posted by: Guest on July-14-2021

Code answers related to "apex collection add element"

Code answers related to "SQL"

Browse Popular Code Answers by Language