2、创建触发器(关联表字段和序列)
create or replace trigger 触发器名 before insert on 表名 for each row begin select 序列名.nextval into:new.表字段 from dual; end;
oracle设置id自动增长
标签:nocache tar bsp rac style code 序列 seq oca
2、创建触发器(关联表字段和序列)
create or replace trigger 触发器名 before insert on 表名 for each row begin select 序列名.nextval into:new.表字段 from dual; end;
oracle设置id自动增长
标签:nocache tar bsp rac style code 序列 seq oca