Unverified 提交 0c1f3a67 authored 作者: Noel Grandin's avatar Noel Grandin 提交者: GitHub

Merge pull request #729 from perhuss/master

Grammar documentation change
...@@ -286,7 +286,7 @@ ALTER SEQUENCE SEQ_ID RESTART WITH 1000 ...@@ -286,7 +286,7 @@ ALTER SEQUENCE SEQ_ID RESTART WITH 1000
"Commands (DDL)","ALTER TABLE ADD"," "Commands (DDL)","ALTER TABLE ADD","
ALTER TABLE [ IF EXISTS ] tableName ADD [ COLUMN ] ALTER TABLE [ IF EXISTS ] tableName ADD [ COLUMN ]
{ [ IF NOT EXISTS ] columnDefinition | ( { columnDefinition } [,...] ) } { [ IF NOT EXISTS ] columnName columnDefinition | ( { columnName columnDefinition } [,...] ) }
[ { BEFORE | AFTER } columnName ] [ { BEFORE | AFTER } columnName ]
"," ","
Adds a new column to a table. Adds a new column to a table.
...@@ -318,7 +318,7 @@ ALTER TABLE TEST RENAME CONSTRAINT FOO TO BAR ...@@ -318,7 +318,7 @@ ALTER TABLE TEST RENAME CONSTRAINT FOO TO BAR
"Commands (DDL)","ALTER TABLE ALTER COLUMN"," "Commands (DDL)","ALTER TABLE ALTER COLUMN","
ALTER TABLE [ IF EXISTS ] tableName ALTER COLUMN columnName ALTER TABLE [ IF EXISTS ] tableName ALTER COLUMN columnName
{ { dataType [ VISIBLE | INVISIBLE ] [ DEFAULT expression ] [ [ NOT ] NULL ] [ AUTO_INCREMENT | IDENTITY ] } { { columnDefinition }
| { RENAME TO name } | { RENAME TO name }
| { RESTART WITH long } | { RESTART WITH long }
| { SELECTIVITY int } | { SELECTIVITY int }
...@@ -683,7 +683,7 @@ CREATE SEQUENCE SEQ_ID ...@@ -683,7 +683,7 @@ CREATE SEQUENCE SEQ_ID
"Commands (DDL)","CREATE TABLE"," "Commands (DDL)","CREATE TABLE","
CREATE [ CACHED | MEMORY ] [ TEMP | [ GLOBAL | LOCAL ] TEMPORARY ] CREATE [ CACHED | MEMORY ] [ TEMP | [ GLOBAL | LOCAL ] TEMPORARY ]
TABLE [ IF NOT EXISTS ] name TABLE [ IF NOT EXISTS ] name
[ ( { columnDefinition | constraint } [,...] ) ] [ ( { columnName columnDefinition | constraint } [,...] ) ]
[ ENGINE tableEngineName ] [ ENGINE tableEngineName ]
[ WITH tableEngineParamName [,...] ] [ WITH tableEngineParamName [,...] ]
[ NOT PERSISTENT ] [ TRANSACTIONAL ] [ NOT PERSISTENT ] [ TRANSACTIONAL ]
...@@ -1865,8 +1865,7 @@ AES ...@@ -1865,8 +1865,7 @@ AES
" "
"Other Grammar","Column Definition"," "Other Grammar","Column Definition","
columnName dataType dataType [ VISIBLE | INVISIBLE ]
[ VISIBLE | INVISIBLE ]
[ { DEFAULT expression | AS computedColumnExpression } ] [ [ NOT ] NULL ] [ { DEFAULT expression | AS computedColumnExpression } ] [ [ NOT ] NULL ]
[ { AUTO_INCREMENT | IDENTITY } [ ( startInt [, incrementInt ] ) ] ] [ { AUTO_INCREMENT | IDENTITY } [ ( startInt [, incrementInt ] ) ] ]
[ SELECTIVITY selectivity ] [ COMMENT expression ] [ SELECTIVITY selectivity ] [ COMMENT expression ]
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论