【问题标题】:Cannot print to command line in sql plus无法在 sql plus 中打印到命令行
【发布时间】:2015-03-07 08:10:30
【问题描述】:

我在外部文件中创建了一个过程

create or replace procedure emp_select
is
begin
    dbms_output.put_line('Hello World');
end;
/

它是在 sqlplus 中使用

运行的
@ /pathtofile

它给procedure created

exec emp_select; 只说procedure executed successfully,但屏幕上没有输出

【问题讨论】:

  • 你先运行set serveroutput on;了吗?
  • 这就是问题所在。设置服务器输出;修好了。

标签: oracle plsql sqlplus


【解决方案1】:

首先在 SQL*Plus 中运行它:

set serveroutput on;

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2011-02-11
    • 1970-01-01
    • 2013-06-10
    • 2016-09-24
    • 2016-01-22
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多