orcle序列的创建删除

来源:互联网 发布:淘宝虚拟网店取消 编辑:程序博客网 时间:2024/05/16 00:54

序列的创建

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;

1 0