过程里的参数不能指定其长度,改成下面的就可以了:
create or replace procedure prc_two(a in integer,c out char) as
begin
if a=5 then
c:='a大于b';
else
c:='a小于 b';
end if;
end prc_two;
create or replace procedure prc_two(a in integer,c out char) as
begin
if a=5 then
c:='a大于b';
else
c:='a小于 b';
end if;
end prc_two;
as
begin
if a=5 then
c:='a 大于 b';
else
c:='a 小于 b';
end if;
end prc_two;
就可以了!!c out varchar 应该不可以加参数