CURSOR V_CUR IS
select regexp_substr(Parm1 ,'[^,]+', 1, level) As str from dual
connect by regexp_substr(Parm1, '[^,]+', 1, level) is not null;
Denne curor vil give dig et resultat som dette
123
321
Gentag nu markøren og kald proceduren i loop.
For i IN V_CUR
LOOP
callProdcedure2(i.str);
END LOOP;