开始

在 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

结束

相关文章:

  • 2021-10-10
  • 2022-12-23
  • 2021-11-27
  • 2021-08-04
  • 2021-11-15
  • 2021-12-12
  • 2021-12-10
  • 2021-06-17
猜你喜欢
  • 2021-12-08
  • 2021-04-15
  • 2021-11-25
  • 2021-06-01
  • 2021-07-24
相关资源
相似解决方案