Originariamente inviato da sanomadi
CURSOR c1 IS
select * from PIPPO where .....;
BEGIN
for riga in c1 LOOP /*inizio il ciclo per ogni scheda in c1 */
....
....
....

BEGIN
SELECT CAMPO1, CAMPO2, CAMPO3
INTO C1,C2,C3
FROM STORICO
WHERE CAMPO5= rc.colonna5
and id_storico=num;
EXCEPTION WHEN NO_DATA FOUND THEN
...
...
...
END
END


spero ti esserti stata utile...


Ci avevo giā provato ma purtroppo mi da questo errore:

PLS-00103: Encountered the symbol "EXCEPTION" when expecting one of the following:

begin declare end exit for goto if loop mod null pragma raise
return select update while <an identifier>
<a

Cosa sbaglio?? :master: