Oracle
 sql >> Database >  >> RDS >> Oracle

Parola chiave "CONTINUA" in Oracle 10g PL/SQL

Puoi simulare un continuo usando goto ed etichette.

DECLARE
   done  BOOLEAN;
BEGIN
   FOR i IN 1..50 LOOP
      IF done THEN
         GOTO end_loop;
      END IF;
   <<end_loop>>  -- not allowed unless an executable statement follows
   NULL; -- add NULL statement to avoid error
   END LOOP;  -- raises an error without the previous NULL
END;