且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

Oracle的PL/SQL Developer 中如何输出:

更新时间:2022-09-13 19:01:29

开始

在 sql worksheet 中,执行一个 block 之前,执行 set serveroutput on;

set serveroutput on;
declare g_salary number:=100;
begin
  select salary into g_salary from employees where employee_id=178;
  dbms_output.put_line('the salary is:'|| g_salary);
end;

script out 窗口中输出:

anonymous block completed
the salary is:7000

结束




本文转自健哥的数据花园博客园博客,原文链接:http://www.cnblogs.com/gaojian/archive/2012/11/12/2766703.html,如需转载请自行联系原作者