create or replace procedure seqn (sname IN seq.seqname%type ,
startv IN seq.startval%type ,
incby IN seq.incrementby%type ,
maxi IN seq.maxilimit%type );
IS
s_count integer ;
begin
select count(*)
into s_count
from sequence;
where seqname := sname ;
if s_count := 0
then
insert into seq
values(sname,startv,incby,maxi);
end if;
end seqn ;
/
答案 0 :(得分:0)
我在您的程序中发现了四个错误。
首先,从以下行的末尾删除两个分号:
maxi IN seq.maxilimit%type );
from sequence;
其次,请勿使用:=
来比较以下两行中的值,而是使用=
。
where seqname := sname ;
if s_count := 0