Oracle自增序列

时间:2014-07-06 23:40:07   收藏:0   阅读:275

//创建自增序列

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

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

Oracle自增序列,布布扣,bubuko.com

评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!