I am doing a for loop in Oracle 10g, inside the loop I have a query, what I need is that if this query does not return anything or gives an error, jump to the next iteration without performing the following instructions.
FOR I IN LTRN.FIRST .. LTRN.COUNT
LOOP
SELECT ID_CLIENTE
INTO VID_CLIENT`introducir el código aquí`E
FROM AAA_CLIENTES
WHERE ID_PERSONA = LTRN(I).ID_PERSONA;
LTRN(I).ID_CLIENTE := VID_CLIENTE;
/*(Aquí debería ir el "exception" y dentro de este la opción para saltar a la siguiente iteracion del for, intente con Go To pero me generar error)*/
END LOOP;
I hope you can help me.