成人免费xxxxx在线视频软件_久久精品久久久_亚洲国产精品久久久_天天色天天色_亚洲人成一区_欧美一级欧美三级在线观看

alter_sequence 中文man頁面

系統(tǒng)
ALTER SEQUENCE 命令修改一個現(xiàn)有的序列發(fā)生器的參數(shù)。 任何沒有明確在 ALTER SEQUENCE 命令里聲明的參數(shù)都將保留原先的設(shè)置。

NAME

ALTER SEQUENCE - 更改一個序列生成器的定義

SYNOPSIS

ALTER SEQUENCE name [ INCREMENT [ BY ] increment ]
    [ MINVALUE minvalue | NO MINVALUE ] [ MAXVALUE maxvalue | NO MAXVALUE ]
    [ RESTART [ WITH ] start ] [ CACHE cache ] [ [ NO ] CYCLE ]
  

DESCRIPTION 描述

ALTER SEQUENCE 命令修改一個現(xiàn)有的序列發(fā)生器的參數(shù)。 任何沒有明確在 ALTER SEQUENCE 命令里聲明的參數(shù)都將保留原先的設(shè)置。  

PARAMETERS 參數(shù)

name

 一個要修改的序列的名字(可以有模式修飾)。
increment
INCREMENT BY increment 子句是可選的。一個正數(shù)會讓序列成為遞增序列,負數(shù)則成為遞減序列。 如果沒有聲明,將沿用原來的遞增值。
minvalue
NO MINVALUE

 可選的子句 MINVALUE minvalue  決定一個序列可以生成的最小的值。如果聲明了 NO MINVALUE,將使用缺省值, 對于遞增和遞減的序列分別是 1 和 -2^63-1。如果沒有聲明任何選項,則沿用當(dāng)前的最小值。
maxvalue
NO MAXVALUE

 可選的子句 MAXVALUE maxvalue 決定序列的***值。如果聲明了 NO MAXVALUE,則使用缺省值,對于遞增和遞減的序列分別是 2^63-1 和 -1。如果兩個選項都沒有聲明, 則沿用當(dāng)前的***值。
start

 可選的 RESTART WITH start 子句允許序列可以在任何地方開始。
cache
CACHE cache 選項打開序列號預(yù)分配并存儲在內(nèi)存緩沖的功能。最小值是 1 (也就是每次只能生成一個數(shù)值,沒有緩沖)。 如果沒有聲明,將沿用舊的緩沖值。
CYCLE

 可選的鍵字 CYCLE 可以用于允許序列在達到遞增序列的 maxvalue 或者遞減序列的 minvalue的時候重疊使用。 如果達到了極限,那么生成的下一個數(shù)字將分別是 minvaluemaxvalue
NO CYCLE

 如果聲明了可選鍵字 NO CYCLE,任何在序列達到其***極限后對 nextval 的調(diào)用都將返回錯誤。 如果既未聲明 CYCLE 也未聲明 NO CYCLE, 那么將沿用原有的循環(huán)行為。

EXAMPLES 例子


 從 105 開始重新開始一個叫 serial 的序列:

ALTER SEQUENCE serial RESTART WITH 105;

NOTES 注意


 為了避免并發(fā)的事務(wù)從同一個序列獲取數(shù)值的時候被阻塞住,ALTER SEQUENCE 操作從來不會回滾; 修改馬上生效并且不能恢復(fù)。

ALTER SEQUENCE 將不會立即影響后端的 nextval 結(jié)果,除了當(dāng)前的之外, 因為它又已經(jīng)緩沖了的序列號。它們只有再使用光所有已經(jīng)緩沖的數(shù)值之后才能意識到改變了的序列參數(shù)。當(dāng)前后端將立即被影響。  

#p#

NAME

ALTER SEQUENCE - alter the definition of a sequence generator

SYNOPSIS

ALTER SEQUENCE name [ INCREMENT [ BY ] increment ]
    [ MINVALUE minvalue | NO MINVALUE ] [ MAXVALUE maxvalue | NO MAXVALUE ]
    [ RESTART [ WITH ] start ] [ CACHE cache ] [ [ NO ] CYCLE ]
  

DESCRIPTION

ALTER SEQUENCE changes the parameters of an existing sequence generator. Any parameter not specifically set in the ALTER SEQUENCE command retains its prior setting.  

PARAMETERS

name
The name (optionally schema-qualified) of a sequence to be altered.
increment
The clause INCREMENT BY increment is optional. A positive value will make an ascending sequence, a negative one a descending sequence. If unspecified, the old increment value will be maintained.
minvalue
NO MINVALUE
The optional clause MINVALUE minvalue determines the minimum value a sequence can generate. If NO MINVALUE is specified, the defaults of 1 and -263-1 for ascending and descending sequences, respectively, will be used. If neither option is specified, the current minimum value will be maintained.
maxvalue
NO MAXVALUE
The optional clause MAXVALUE maxvalue determines the maximum value for the sequence. If NO MAXVALUE is specified, the defaults are 263-1 and -1 for ascending and descending sequences, respectively, will be used. If neither option is specified, the current maximum value will be maintained.
start
The optional clause RESTART WITH start changes the current value of the sequence.
cache
The clause CACHE cache enables sequence numbers to be preallocated and stored in memory for faster access. The minimum value is 1 (only one value can be generated at a time, i.e., no cache). If unspecified, the old cache value will be maintained.
CYCLE
The optional CYCLE key word may be used to enable the sequence to wrap around when the maxvalue or minvalue has been reached by an ascending or descending sequence respectively. If the limit is reached, the next number generated will be the minvalue or maxvalue, respectively.
NO CYCLE
If the optional NO CYCLE key word is specified, any calls to nextval after the sequence has reached its maximum value will return an error. If neither CYCLE or NO CYCLE are specified, the old cycle behaviour will be maintained.

EXAMPLES

Restart a sequence called serial, at 105:

ALTER SEQUENCE serial RESTART WITH 105;

NOTES

To avoid blocking of concurrent transactions that obtain numbers from the same sequence, ALTER SEQUENCE is never rolled back; the changes take effect immediately and are not reversible.

ALTER SEQUENCE will not immediately affect nextval results in backends, other than the current one, that have preallocated (cached) sequence values. They will use up all cached values prior to noticing the changed sequence parameters. The current backend will be affected immediately.  

責(zé)任編輯:韓亞珊 來源: CMPP.net
相關(guān)推薦

2011-08-24 09:02:10

ALTER AGGRE中文man

2011-08-24 13:26:19

CREATE SEQU中文man

2011-08-24 09:14:47

alter_conve中文man

2011-08-24 09:51:53

alter_user中文man

2011-08-24 09:18:45

alter_datab中文man

2011-08-24 09:22:30

alter_domai中文man

2011-08-24 09:29:18

alter_group中文man

2011-08-24 09:32:13

alter_langu中文man

2011-08-24 09:39:10

alter_schem中文man

2011-08-24 09:45:14

alter_table中文man

2011-08-24 09:48:46

alter_trigg中文man

2011-08-24 09:26:14

alter_funct中文man

2011-08-24 14:46:42

drop_sequen中文man

2011-08-24 09:36:00

alter_opera中文man

2011-08-15 10:21:09

man中文man

2011-08-24 16:48:36

man中文man

2011-08-11 16:11:49

at中文man

2011-08-25 10:21:56

man.conf中文man

2011-08-11 15:03:21

ACCESS中文man

2011-08-11 15:28:43

ali中文man
點贊
收藏

51CTO技術(shù)棧公眾號

主站蜘蛛池模板: 欧美在线视频网 | 亚洲精品乱码8久久久久久日本 | 国产探花在线观看视频 | 成人免费精品 | 日韩成人免费在线视频 | 精品毛片| 成人精品啪啪欧美成 | 亚洲精品国产第一综合99久久 | 国产激情亚洲 | 精品在线播放 | 久久久久99 | 91社区在线观看播放 | 妞干网视频 | 国产亚洲精品综合一区 | 日韩电影中文字幕 | 嫩草国产 | 亚州综合在线 | 99精品免费在线观看 | 97色在线观看免费视频 | 亚洲视频三 | 天天色影视综合 | 精品一区二区三区在线视频 | 欧美一区二区视频 | 国产高清在线 | 成人性生交大免费 | 亚洲欧美视频一区 | 龙珠z在线观看 | 精品欧美乱码久久久久久 | 嫩草研究影院 | 日日操av| 成年人免费在线视频 | 亚洲精品字幕 | www.五月婷婷.com| 国产三级一区二区 | 91嫩草精品 | 国产精品美女一区二区 | 国产黄色大片 | 免费国产一区二区 | 日日骚网 | 亚洲乱码一区二区三区在线观看 | 日韩三区|