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