提交 751d0ed5 authored 作者: Evgenij Ryazanov's avatar Evgenij Ryazanov

Update documentation

上级 7a212e63
...@@ -703,12 +703,7 @@ CREATE SCHEMA TEST_SCHEMA AUTHORIZATION SA ...@@ -703,12 +703,7 @@ CREATE SCHEMA TEST_SCHEMA AUTHORIZATION SA
"Commands (DDL)","CREATE SEQUENCE"," "Commands (DDL)","CREATE SEQUENCE","
CREATE SEQUENCE [ IF NOT EXISTS ] newSequenceName CREATE SEQUENCE [ IF NOT EXISTS ] newSequenceName
[ START WITH long ] sequenceOptions
[ INCREMENT BY long ]
[ MINVALUE long | NOMINVALUE | NO MINVALUE ]
[ MAXVALUE long | NOMAXVALUE | NO MAXVALUE ]
[ CYCLE long | NOCYCLE | NO CYCLE ]
[ CACHE long | NOCACHE | NO CACHE ]
"," ","
Creates a new sequence. Creates a new sequence.
The data type of a sequence is BIGINT. The data type of a sequence is BIGINT.
...@@ -2085,7 +2080,9 @@ AES ...@@ -2085,7 +2080,9 @@ AES
"Other Grammar","Column Definition"," "Other Grammar","Column Definition","
dataType [ VISIBLE | INVISIBLE ] dataType [ VISIBLE | INVISIBLE ]
[ { DEFAULT expression | AS computedColumnExpression } ] [ { DEFAULT expression
| AS computedColumnExpression
| GENERATED {ALWAYS | BY DEFAULT} AS IDENTITY [(sequenceOptions)]} ]
[ ON UPDATE expression ] [ [ NOT ] NULL ] [ ON UPDATE expression ] [ [ NOT ] NULL ]
[ { AUTO_INCREMENT | IDENTITY } [ ( startInt [, incrementInt ] ) ] ] [ { AUTO_INCREMENT | IDENTITY } [ ( startInt [, incrementInt ] ) ] ]
[ SELECTIVITY selectivity ] [ COMMENT expression ] [ SELECTIVITY selectivity ] [ COMMENT expression ]
...@@ -2097,9 +2094,11 @@ On update column expression is used if row is updated, ...@@ -2097,9 +2094,11 @@ On update column expression is used if row is updated,
at least one column have a new value that is different from its previous value at least one column have a new value that is different from its previous value
and value for this column is not set explicitly in update statement. and value for this column is not set explicitly in update statement.
Identity and auto-increment columns are columns with a sequence as the Identity, auto-increment, or generated as identity columns are columns with a sequence as the default.
default. The column declared as the identity columns is implicitly the The column declared as the identity columns with IDENTITY data type or with IDENTITY () clause
primary key column of this table (unlike auto-increment columns). is implicitly the primary key column of this table.
AUTO_INCREMENT and GENERATED clauses do not create the primary key constraint.
GENERATED ALWAYS is accepted by treated in the same way as GENERATED BY DEFAULT.
The invisible column will not be displayed as a result of SELECT * query. The invisible column will not be displayed as a result of SELECT * query.
Otherwise, it works as normal column. Otherwise, it works as normal column.
...@@ -2483,6 +2482,19 @@ An expression in a SELECT statement. ...@@ -2483,6 +2482,19 @@ An expression in a SELECT statement.
ID AS VALUE ID AS VALUE
" "
"Other Grammar","Sequence options","
[ START WITH long ]
[ INCREMENT BY long ]
[ MINVALUE long | NOMINVALUE | NO MINVALUE ]
[ MAXVALUE long | NOMAXVALUE | NO MAXVALUE ]
[ CYCLE long | NOCYCLE | NO CYCLE ]
[ CACHE long | NOCACHE | NO CACHE ]
","
Options of a sequence.
","
START WITH 1
"
"Other Grammar","Set clause list"," "Other Grammar","Set clause list","
{ { columnName = { DEFAULT | expression } } [,...] } | { { columnName = { DEFAULT | expression } } [,...] } |
{ ( columnName [,...] ) = ( select ) } { ( columnName [,...] ) = ( select ) }
......
...@@ -21,6 +21,8 @@ Change Log ...@@ -21,6 +21,8 @@ Change Log
<h2>Next Version (unreleased)</h2> <h2>Next Version (unreleased)</h2>
<ul> <ul>
<li>Issue #1437: Generated as Identity has a different behaviour.
</li>
<li>PR #1467: Fix subtraction of timestamps <li>PR #1467: Fix subtraction of timestamps
</li> </li>
<li>PR #1464: Assorted minor changes in window processing code <li>PR #1464: Assorted minor changes in window processing code
......
...@@ -797,3 +797,4 @@ xym normalizes coord setz xyzm geometrycollection multipolygon mixup rings polyg ...@@ -797,3 +797,4 @@ xym normalizes coord setz xyzm geometrycollection multipolygon mixup rings polyg
pointzm pointz pointm dimensionality redefine forum measures pointzm pointz pointm dimensionality redefine forum measures
mpg casted pzm mls constrained subtypes complains mpg casted pzm mls constrained subtypes complains
ranks rno dro rko precede cume reopens preceding unbounded rightly itr lag maximal tiles tile ntile signify ranks rno dro rko precede cume reopens preceding unbounded rightly itr lag maximal tiles tile ntile signify
partitioned
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论