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


开始

在 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

结束


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM