Function new_key (inout number)
is
keyval number;
begin
select sequencename.nextval into keyval from dual;
return keyval;
end;
or something similar, as part of a package, call it with sqlexec with
sqlexec(schema.package.function(parameter))
The inout should make it work,as the paramete goes both ways then.
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only