日期:2014-05-16 浏览次数:20530 次
小实验测试一下:
hr@ORCL> ed Wrote file afiedt.buf 1 DECLARE 2 j PLS_INTEGER :=0; 3 BEGIN 4 FOR i IN 1..1000000 5 LOOP 6 j:=i+1; 7 IF j=1000 8 THEN 9 dbms_output.put_line('Hello Think'); 10 END IF; 11 END LOOP; 12* END; hr@ORCL> / Hello Think PL/SQL procedure successfully completed. Elapsed: 00:00:00.28 hr@ORCL> ed Wrote file afiedt.buf 1 DECLARE 2 j NUMBER :=0; 3 BEGIN 4 FOR i IN 1..1000000 5 LOOP 6 j:=i+1; 7 IF j=1000 8 THEN 9 dbms_output.put_line('Hello Think'); 10 END IF; 11 END LOOP; 12* END; hr@ORCL> / Hello Think PL/SQL procedure successfully completed. Elapsed: 00:00:00.36