Oracle操作ORA-02289: 序列不存在

解决方案:实现创建序列,创建语句如下所示:

create sequence employees_seq
minvalue 2000
maxvalue 9999999999
start with 2020
increment by 1
cache 20;

这时候再执行语句

select employees_seq.nextval from dual;

就不会报错了。

posted @ 2018-11-17 20:25  寒潭渡鹤影  阅读(22454)  评论(0编辑  收藏  举报