欧美三区_成人在线免费观看视频_欧美极品少妇xxxxⅹ免费视频_a级毛片免费播放_鲁一鲁中文字幕久久_亚洲一级特黄

Oracle sequence 的 order/noorder 選項(xiàng)

系統(tǒng) 1868 0
以前建序列時(shí)從來(lái)沒(méi)注意過(guò)這個(gè)選項(xiàng),總是認(rèn)為序列就一定是有序的,今天被人問(wèn)道才注意了一下。原來(lái)是在 Oracle 并行服務(wù)器上用到的,我理解是不是在并行情況下,如果序列是noorder的,則取序列號(hào)時(shí),先發(fā)出命令的實(shí)例不一定能取到大的序列。在決大多數(shù)情況下是用不到的。

CREATE SEQUENCE command

PURPOSE:
??? To create a sequence . A sequence is a database object from which
??? multiple users may generate unique integers. You can use sequences
??? to automatically generate primary key values.

SYNTAX:

CREATE SEQUENCE [schema.] sequence
??? [INCREMENT BY integer]
??? [START WITH integer]
??? [MAXVALUE integer | NOMAXVALUE]
??? [MINVALUE integer | NOMINVALUE]
??? [CYCLE | NOCYCLE]
??? [CACHE integer | NOCACHE]
??? [ ORDER | NOORDER]

where:

schema
??? is the schema to contain the sequence . If you omit schema, Oracle
??? creates the sequence in your own schema.

sequence
??? is the name of the sequence to be created.

INCREMENT BY
??? specifies the interval between sequence numbers. This value can be
??? any positive or negative Oracle integer, but it cannot be 0. If
??? this value is negative, then the sequence descends. If the
??? increment is positive, then the sequence ascends. If you omit this
??? clause, the interval defaults to 1.

MINVALUE
??? specifies the sequence 's minimum value.

NOMINVALUE
??? specifies a minimum value of 1 for an ascending sequence or -10
??? for a descending sequence .

??? The default is NOMINVALUE.

MAXVALUE
??? specifies the maximum value the sequence can generate.

NOMAXVALUE
??? specifies a maximum value of 10
??? for a descending sequence .

The default is NOMAXVALUE.

START WITH
??? specifies the first sequence number to be generated. You can use
??? this option to start an ascending sequence at a value greater than
??? its minimum or to start a descending sequence at a value less than
??? its maximum. For ascending sequences, the default value is the
??? sequence 's minimum value. For descending sequences, the default
??? value is the sequence 's maximum value.

CYCLE
??? specifies that the sequence continues to generate values after
??? reaching either its maximum or minimum value. After an ascending
??? sequence reaches its maximum value, it generates its minimum value.
??? After a descending sequence reaches its minimum, it generates its
??? maximum.

NOCYCLE
??? specifies that the sequence cannot generate more values after
??? reaching its maximum or minimum value.

??? The default is NOCYCLE.

CACHE
??? specifies how many values of the sequence Oracle preallocates and
??? keeps in memory for faster access. The minimum value for this
??? parameter is 2. For sequences that cycle, this value must be less
??? than the number of values in the cycle.

NOCACHE
??? specifies that values of the sequence are not preallocated.

??? If you omit both the CACHE parameter and the NOCACHE option, Oracle
??? caches 20 sequence numbers by default. However, if you are using
??? Oracle with the Parallel Server option in parallel mode and you
??? specify the ORDER option, sequence values are never cached,
??? regardless of whether you specify the CACHE parameter or the NOCACHE
??? option.

ORDER
??? guarantees that sequence numbers are generated in order of request.
??? You may want to use this option if you are using the sequence
??? numbers as timestamps. Guaranteeing order is usually not important
??? for sequences used to generate primary keys.

NOORDER
??? does not guarantee sequence numbers are generated in order of
??? request.

??? If you omit both the ORDER and NOORDER options, Oracle chooses
??? NOORDER by default. Note that the ORDER option is only necessary to
??? guarantee ordered generation if you are using Oracle with the
??? Parallel Server option in parallel mode. If you are using exclusive
??? mode, sequence numbers are always generated in order .

PREREQUISITES:
??? To create a sequence in your own schema, you must have CREATE
??? SEQUENCE privilege.

??? To create a sequence in another user's schema, you must have CREATE
??? ANY SEQUENCE privilege. If you are using Trusted Oracle in DBMS MAC
??? mode, your DBMS label must dominate the creation label of the owner
??? of the schema to contain the sequence .

Oracle sequence 的 order/noorder 選項(xiàng)


更多文章、技術(shù)交流、商務(wù)合作、聯(lián)系博主

微信掃碼或搜索:z360901061

微信掃一掃加我為好友

QQ號(hào)聯(lián)系: 360901061

您的支持是博主寫(xiě)作最大的動(dòng)力,如果您喜歡我的文章,感覺(jué)我的文章對(duì)您有幫助,請(qǐng)用微信掃描下面二維碼支持博主2元、5元、10元、20元等您想捐的金額吧,狠狠點(diǎn)擊下面給點(diǎn)支持吧,站長(zhǎng)非常感激您!手機(jī)微信長(zhǎng)按不能支付解決辦法:請(qǐng)將微信支付二維碼保存到相冊(cè),切換到微信,然后點(diǎn)擊微信右上角掃一掃功能,選擇支付二維碼完成支付。

【本文對(duì)您有幫助就好】

您的支持是博主寫(xiě)作最大的動(dòng)力,如果您喜歡我的文章,感覺(jué)我的文章對(duì)您有幫助,請(qǐng)用微信掃描上面二維碼支持博主2元、5元、10元、自定義金額等您想捐的金額吧,站長(zhǎng)會(huì)非常 感謝您的哦!!!

發(fā)表我的評(píng)論
最新評(píng)論 總共0條評(píng)論
主站蜘蛛池模板: 欧美在线一区二区三区欧美 | 中国大陆高清aⅴ毛片 | 国产欧美精品一区二区三区四区 | 精品久久洲久久久久护士免费 | 99热久久这里只精品国产9 | 日韩手机在线 | 精品卡1卡二卡3卡 | 精品免费国产一区二区三区四区 | 三级网站免费 | 国内精品一区二区三区 | 欧美―第一页―浮力影院 | 国产精品97在线 | 国产精品毛片久久久久久久 | 国产精品成人一区二区 | 亚洲天天干| 狠狠躁日日躁夜夜躁A片小说按摩 | 视频二区 | 波多野结衣手机在线播放 | 国产综合精品一区二区三区 | 色综合色综合网色综合 | 热久久久 | 久久国产精品视频 | 亚洲一区二区三区久久精品 | 性欧美一区 | 亚洲一区二区三区久久 | 亚洲欧美日韩在线不卡中文 | 一级片黄色免费 | 羞羞哒哒视频 | 日韩在线观看视频网站 | 国产精品主播视频 | 岛国色情A片无码视频免费看 | 日本一区二区免费看 | 免费看在线偷拍视频 | 日本精品在线播放 | 欧美中文字幕在线播放 | 99热最新网址 | 亚洲视频毛片 | 亚洲欧美国产一区二区三区 | 老妇毛片| 国产三级做爰在线观看视频 | 国产一级影视 |