不解释,看结果:
SQL> SET serveroutput ON
SQL> ;
SQL> BEGIN
2 dbms_output.enable();
3 dbms_output.put_line('HELLO');
4 END
5 ;
6 /
HELLO
PL/SQL procedure successfully completed
SQL> SET serveroutput ON
SQL> ;
SQL> BEGIN
2 dbms_output.disable();
3 dbms_output.put_line('HELLO');
4 END
5 ;
6 /
PL/SQL procedure successfully completed
SQL> SET serveroutput OFF
SQL> ;
SQL> BEGIN
2 dbms_output.enable();
3 dbms_output.put_line('HELLO');
4 END
5 ;
6 /
PL/SQL procedure successfully completed
SQL> SET serveroutput OFF
SQL> ;
SQL> BEGIN
2 dbms_output.disable();
3 dbms_output.put_line('HELLO');
4 END
5 ;
6 /
PL/SQL procedure successfully completed
阅读(1887) | 评论(0) | 转发(0) |