-- Create sequence
create sequence FILE_ID_SEQ 主键名(自增列)
minvalue 1 起始
maxvalue 99999 最大值
start with 10100 开始于
increment by 1 增量
cache 20; 告诉缓存大小
Oracel中插入自增
oracel数据库主键自增
原文:http://www.cnblogs.com/qxqbk/p/7117724.html