日期:2014-05-17  浏览次数:20940 次

关于序列的问题!!
题目要求 :创建一个序列,使之生成从值9开始的整数,各个值应该比生成的前一个值小3.这个序列应该允许生成的最小的可能值为-1
create sequence my_first_sequence
increment by -3
start with 9
minvalue -1
nocycle;
为什么显示有错误,不理解,求高手!!这个序列应该怎么写??

------解决方案--------------------
SQL code

create sequence my_first_sequence
increment by -3
start with 9
maxvalue 9
minvalue -1
nocycle;

------解决方案--------------------
探讨

SQL code

create sequence my_first_sequence
increment by -3
start with 9
maxvalue 9
minvalue -1
nocycle;

------解决方案--------------------
需要指定个最大值。如上面两位写的