我开始在 Oracle 中创建一个序列。在浏览 oracle 文档时,我得到了这个原型
Create Sequence SeqTest5
Start With 0
Increment by 1
Min value 0
Maxvalue 8
NoCycle --I got to know we can give this as 'Cycle' which will again
-- Repeat the loop. But my doubt is why cannot we specify number of
-- Loops. Such as Cycle 20
NoCache --I got to know we can give certain buffer lenght via cache
你能解释一下为什么我们不能声明它,因为我已经尝试过并得到了这个错误
1 create sequence seqtest4
2 cache 30,
3* cycle 20,
SQL> /
cache 30,
*
ERROR at line 2:
ORA-00933: SQL command not properly ended
例如:-
TNUM
0
1
4
2
3
5
6
7
8
这个0-8应该写10次就停止。