CREATE SEQUENCE VOLGNUMR
START WITH 1
INCREMENT BY 1
NOCYCLE
CACHE 20
NOORDER;
CREATE procedure NewVolgNumr(
NewKey out number )
is begin
NewKey := volgnumr.nextval;
end;
but that does'nt work. Any
Ideas?
create procedure
... as
begin
select volgnumr.nextval
into NewKey
from dual;
end;
I am not complety sure if select
into an out parameter is allowed. If not,
then use an extra variable
to store the result and assign this to NewKey.