如下是我定义的过程 请问怎么才能让num能在set serveroutput on 之后自己给定一个数? 有没有和dbms-output.put-line( )对应的语句? 不好意思 我初学oracle
declare num number; begin num:=2; if num>0 then dbms_output.put_line('zhengshu'); end if; end;
收起
其实创建存储过程,调用存储过程不是很简单的吗?没搞懂为什么一定要从屏幕(控制台输入?)输入。
create or replace procedure PrintNumber(num in number) is begin if(num>2) then dbms_output.put_line('zhengshu'); end if; end;
exec PrintNumber(10)
报告相同问题?