数据集合的使用

TYPE TAB_xx IS TABLE OF T_xx%ROWTYPE INDEX BY BINARY_INTEGER;

v_xx TAB_xx;

...

  SELECT RS_ID,RULE_ID, RULE_PRI,
    INTO v_xx    FROM T_xx   WHERE RULE_STATUS = 1
   ORDER BY RULE_PRI ASC;

FOR i IN 1 .. v_xx.COUNT LOOP

...

END LOOP;

 

你可能感兴趣的:(集合的使用)