dbms_output.put_line的小例子

开始

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

结束

posted @ 2012-11-12 17:49  健哥的数据花园  阅读(476)  评论(0编辑  收藏  举报