什么是序列?
Sequence 是oracle提供的用于产生一系列唯一数字的数据库对象
序列的创建以及使用
create sequence seq_test2
increment by 1 //每次增加的量
start with 10 //起始值
minvalue 5 //最小值
cycle ; //循环
create table aa(
id number,
names varchar2(10)
)
insert into aa values(seq_test2.nextval,'cty');