Oracle自增序列

//创建自增序列

create sequence SEQ
increment by 1
start with 0
nomaxvalue
minvalue 0
nocycle;

//在sql中使用该序列
INSERT INTO USERS VALUES (SEQ.nextval,'Username','Password','Sex','Xl');

posted @ 2014-07-03 15:24  若拙  阅读(210)  评论(0编辑  收藏  举报