您的位置:首页 > 数据库 > SQL

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

2012-11-12 17:30 323 查看
开始

在 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


结束
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: