关于调用存储过程不能正常显示的问题
我调用存储过程后结果无法正常显示:--创建存储过程createorreplaceprocedurepd_sc(sinchar,agoutint)asbeginselect...
我调用存储过程后结果无法正常显示:
--创建存储过程
create or replace procedure pd_sc
(s in char, ag out int)
as
begin
select avg(grade) into ag
from sc
where sno=s;
end pd_sc;
--调用存储过程
declare
ag int;
begin
pd_sc('95001',ag);
dbms_output.put_line(ag);
end;
--显示结果:
PL/SQL procedure successfully completed 展开
--创建存储过程
create or replace procedure pd_sc
(s in char, ag out int)
as
begin
select avg(grade) into ag
from sc
where sno=s;
end pd_sc;
--调用存储过程
declare
ag int;
begin
pd_sc('95001',ag);
dbms_output.put_line(ag);
end;
--显示结果:
PL/SQL procedure successfully completed 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询