V
volan
Unregistered / Unconfirmed
GUEST, unregistred user!
我测试过,完全正确
create trigger autoinc before insert on Your_table
for each row
declare
hm integer;
begin
select Your_sequence.nextval into hm from dual;
:new.hm := hm;
end;
/
create trigger autoinc before insert on Your_table
for each row
declare
hm integer;
begin
select Your_sequence.nextval into hm from dual;
:new.hm := hm;
end;
/