开始
set serveroutput on define p_annual=6000 declare v_sal number(7,2):=&p_annual; begin v_sal := v_sal/12; dbms_output.put_line('the monthly salary is ' || v_sal); end;
script output 窗口可以看出:
anonymous block completed the monthly salary is 500
结束
本文转自健哥的数据花园博客园博客,原文链接:http://www.cnblogs.com/gaojian/archive/2012/11/12/2766736.html,如需转载请自行联系原作者