OPEN MY_CUR FOR V_SQL; FETCH MY_CUR BULK COLLECT INTO MY_VARRAY;
FOR I IN MY_VARRAY.FIRST .. MY_VARRAY.LAST LOOP INSERT INTO AAA_TEMP (TBNAME, COLNAME, INDEXDATA, OPDATE, DATAROWID, USERS) VALUES (V_TBNAME, V_COLNAME, MY_VARRAY(i), sysdate, null, V_USER); END LOOP;