-3
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 ;
/
谢谢卢克伍德沃德.... – 2014-11-29 09:47:37