有一个存储过程
create or replace procedure test(total out integer) is
begin
select count(*) into total from d_sjpc_gt01;
end test;
我如何执行这个过程,看到我的执行结果
是这样吗:
set serveroutput on
exec test;
报错啊
create or replace procedure test(total out integer) is
begin
select count(*) into total from d_sjpc_gt01;
end test;
我如何执行这个过程,看到我的执行结果
是这样吗:
set serveroutput on
exec test;
报错啊
TT int
begin
test(TT);
end;
TT int
begin
test(TT);
--使用DBMS_Output.putLine输出结果
DBMS_Output.putLine(to_char(tt));
end;
然后再执行上面这段