Timesten语法:
CREATE SEQUENCE [Owner.]SequenceName[INCREMENT BY IncrementValue][MINVALUE MinimumValue][MAXVALUE MaximumValue][CYCLE][CACHE CacheValue][START WITH StartValue]
主要的区别应该是cycle这里,在timesten中序列默认是不重复的。跟oracle正好相反。
Indicates that the sequence number generator continues to generatenumbers after it reaches the maximum or minimum value. Bydefault, sequences do not cycle. Once the number reaches themaximum value in the ascending sequence, the sequence wrapsaround and generates numbers from its minimum value. For adescending sequence, when the minimum value is reached, thesequence number wraps around, beginning from the maximum value.If CYCLE is not specified, the sequence number generator stopsgenerating numbers when the maximum/minimum is reached andTimesTen returns an error.