欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

[Oracle] Sequence

程序员文章站 2022-06-02 16:57:20
...

Create Sequence seq_name
Start With 1
Increment By 1
Maxvalue 100
Minvalue 1
Cache 2
Cycle

Select seq_name.Nextval From dual
Select seq_name.Currval From dual

Alter Sequence seq_name
Increment By 2
Maxvalue 99
Minvalue 1
Nocache
Nocycle


Select * From user_sequences
Select * From seq --user_sequences同义词


Drop Sequence seq_name
相关标签: oracel sequence