1.创建序列
CREATE SEQUENCE SEQ_SYS_ID
INCREMENT 1
START 1
MINVALUE 1
MAXVALUE 999999999999999999
CACHE 1;
2.查看序列
select * from SEQ_SYS_ID;
SELECT nextval('SEQ_SYS_ID');
3.删除序列
drop sequence SEQ_SYS_ID
1.创建序列
CREATE SEQUENCE SEQ_SYS_ID
INCREMENT 1
START 1
MINVALUE 1
MAXVALUE 999999999999999999
CACHE 1;
2.查看序列
select * from SEQ_SYS_ID;
SELECT nextval('SEQ_SYS_ID');
3.删除序列
drop sequence SEQ_SYS_ID
本文标题:序列
本文链接:https://www.haomeiwen.com/subject/fhzlhctx.html
网友评论