序列(sequence)语法

来源:互联网 发布:手机ip切换软件 编辑:程序博客网 时间:2024/06/06 07:29
1、创建、删除
create sequence seq_newsId
increment by 1
start with 1
maxvalue 999999999;
得到序列的SQL语句
select seq_newsid.nextval from sys.dual;
删除序列的SQL
DROP SEQUENCE seq_newsId;
原创粉丝点击