ORA-04015: ascending sequences that CYCLE must specify MAXVALUE
Cause: sequences that cycle must have their wrap-wrap specified
Action: re-create the sequence, specifying its wrap-value
ORA-04015:当在定义一个有CYCLE子句的序列时,必须指定MAXVALUE参数。
此错误消息指示,在定义包含Cycle子句的序列时,必须指定MaxValue参数。
假设您有以下查询:
CREATE SEQUENCE seq_test
START WITH 1
MINVALUE 1
MAXVALUE 100
CYCLE;
在这种情况下,您将会看到以下错误:
ORA-04015: ascending sequences that CYCLE must specify MAXVALUE
解决办法:
为序列指定MaxValue参数,例如:
CREATE SEQUENCE seq_test
START WITH 1
MINVALUE 1
MAXVALUE 100
INCREMENT BY 1
CYCLE;