[ AS data_type ]
[ INCREMENT [ BY ] increment ]
[ MINVALUE minvalue | NO MINVALUE ] [ MAXVALUE maxvalue | NO MAXVALUE ]
+ [ [ NO ] CYCLE ]
[ START [ WITH ] start ]
[ RESTART [ [ WITH ] restart ] ]
- [ CACHE cache ] [ [ NO ] CYCLE ]
+ [ CACHE cache ]
[ OWNED BY { table_name.column_name | NONE } ]
ALTER SEQUENCE [ IF EXISTS ] name SET { LOGGED | UNLOGGED }
ALTER SEQUENCE [ IF EXISTS ] name OWNER TO { new_owner | CURRENT_ROLE | CURRENT_USER | SESSION_USER }
+
+ CYCLE
+
+ The optional CYCLE key word can 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 behavior will be
+ maintained.
+
+
+
+
start
-
- CYCLE
-
- The optional CYCLE key word can 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 behavior will be
- maintained.
-
-
-
-
SET { LOGGED | UNLOGGED }
[ AS data_type ]
[ INCREMENT [ BY ] increment ]
[ MINVALUE minvalue | NO MINVALUE ] [ MAXVALUE maxvalue | NO MAXVALUE ]
- [ START [ WITH ] start ] [ CACHE cache ] [ [ NO ] CYCLE ]
+ [ [ NO ] CYCLE ]
+ [ START [ WITH ] start ]
+ [ CACHE cache ]
[ OWNED BY { table_name.column_name | NONE } ]
+
+ CYCLE
+ NO CYCLE
+
+ The CYCLE option allows the sequence to wrap
+ around when the
+ class="parameter">maxvalue or
+ class="parameter">minvalue has been reached by an
+ ascending or descending sequence respectively. If the limit is
+ reached, the next number generated will be the
+ class="parameter">minvalue or
+ class="parameter">maxvalue, respectively.
+
+
+ If NO CYCLE 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, NO CYCLE is the default.
+
+
+
+
start
-
- CYCLE
- NO CYCLE
-
- The CYCLE option allows the sequence to wrap
- around when the
- class="parameter">maxvalue or
- class="parameter">minvalue has been reached by an
- ascending or descending sequence respectively. If the limit is
- reached, the next number generated will be the
- class="parameter">minvalue or
- class="parameter">maxvalue, respectively.
-
-
- If NO CYCLE 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, NO CYCLE is the default.
-
-
-
-
OWNED BY table_name.column_name
OWNED BY NONE