通常我们同过insert into 操作来update数据库时,并不想把要插入的数据按顺序排在最后。

   我们可以通过产生序列,通过序列来指定位置操作

   产生序列:(-后为填入)

   create sequence -Name increment by -howmuch

   start with -startnumber

   minvalue 

   maxvalue -endnumber

   cycle nocache -不缓存序列。 cache 10则表示缓存10个号,可提高效率,但可能造成跳号。

 

 

posted on 2010-12-01 17:29  KuSiuloong  阅读(731)  评论(0编辑  收藏  举报