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;

就不会报错了。

猜你喜欢

转载自www.cnblogs.com/liaoxiaolao/p/9975463.html