'CONTINUE' keyword in Oracle 10g PL/SQL

后端 未结 9 2184
失恋的感觉
失恋的感觉 2020-12-14 06:00

I\'m migrating a TSQL stored procedure to PL/SQL and have encountered a problem - the lack of a CONTINUE keyword in Oracle 10g.

I\'ve read that Oracle 11g has this a

9条回答
  •  别那么骄傲
    2020-12-14 06:51

    Not exactly elegant, but simple:

    DECLARE
       done  BOOLEAN;
    BEGIN
       FOR i IN 1..50 LOOP
          IF done THEN
             NULL;
          ELSE
             ;
          END IF;
       END LOOP; 
    END;
    

提交回复
热议问题