(1).SQL
DECLARE
i NUMBER;
TYPE c_type_wip_entity IS TABLE OF wip_entities%ROWTYPE;
c_wip_entity c_type_wip_entity;
BEGIN
SELECT *
BULK COLLECT INTO c_wip_entity
FROM wip_entities
WHERE wip_entity_id IN (2363, 2462);
FOR i IN 1 .. c_wip_entity.COUNT
LOOP
DBMS_OUTPUT.put_line (‘Job Name-->‘ || c_wip_entity(i).wip_entity_name);
END LOOP;
END;
(2).DBMS Output