标签:nocache tar bsp rac style code 序列 seq oca
1、创建增长序列
create sequence 序列名 minvalue 1 maxvalue 99999999999999999999 start with 1 increment by 1 nocache
2、创建触发器(关联表字段和序列)
create or replace trigger 触发器名 before insert on 表名 for each row begin select 序列名.nextval into:new.表字段 from dual; end;
标签:nocache tar bsp rac style code 序列 seq oca
原文地址:http://www.cnblogs.com/wenxiangxu/p/6918695.html