create sequence get_seq
minvalue 1--最小值
nomaxvalue--不设最大值
start with 1--从1开始计数;
increment by 1--每次加1;
cache 30 --缓存序列个数,有助于提高效率,但可能造成跳号。
order 这个order代表了什么意思
minvalue 1--最小值
nomaxvalue--不设最大值
start with 1--从1开始计数;
increment by 1--每次加1;
cache 30 --缓存序列个数,有助于提高效率,但可能造成跳号。
order 这个order代表了什么意思
http://topic.csdn.net/u/20070706/13/a0d56107-8aeb-47df-bdb4-9c36dc998171.html
当你合适序列产生的数字作为时间戳的时候,Order子句非常有用只有当你使用Oracle Real Application Clusters的时候,为确保按顺序产生,Order子句才是必要的;
如果你使用的是Exclusive Mode,则默认是Order的。