提交 1a7ff068 authored 作者: Evgenij Ryazanov's avatar Evgenij Ryazanov

Improve documentation of VALUES clause of INSERT and MERGE commands

上级 e31f1e9b
......@@ -136,7 +136,7 @@ EXPLAIN SELECT * FROM TEST WHERE ID=1
"Commands (DML)","MERGE","
MERGE INTO tableName [ ( columnName [,...] ) ]
[ KEY ( columnName [,...] ) ]
{ VALUES { ( { DEFAULT | expression } [,...] ) } [,...] | select }
{ insertValues | select }
","
Updates existing rows, and insert rows that don't exist. If no key column is
specified, the primary key columns are used to find the row. If more than one
......@@ -2413,15 +2413,22 @@ NAME
"Other Grammar","Insert columns and source","
{ [ ( columnName [,...] ) ]
{ VALUES { ( { DEFAULT | expression } [,...] ) } [,...]
| [ DIRECT ] [ SORTED ] select } } |
{ SET { columnName = { DEFAULT | expression } } [,...] }
{ insertValues | [ DIRECT ] [ SORTED ] select } }
| { SET { columnName = { DEFAULT | expression } } [,...] }
","
Names of columns and their values for INSERT statement.
","
(ID, NAME) VALUES (1, 'Test')
"
"Other Grammar","Insert values","
VALUES { DEFAULT|expression | [ROW] ({DEFAULT|expression} [,...]) }, [,...]
","
Values for INSERT statement.
","
VALUES (1, 'Test')
"
"Other Grammar","Int","
[ + | - ] number
","
......
......@@ -16,11 +16,11 @@ HELP ABCDE EF_GH;
HELP HELP;
> ID SECTION TOPIC SYNTAX TEXT
> -- ---------------- ----- ----------------------- ----------------------------------------------------
> 66 Commands (Other) HELP HELP [ anything [...] ] Displays the help pages of SQL commands or keywords.
> 67 Commands (Other) HELP HELP [ anything [...] ] Displays the help pages of SQL commands or keywords.
> rows: 1
HELP he lp;
> ID SECTION TOPIC SYNTAX TEXT
> -- ---------------- ----- ----------------------- ----------------------------------------------------
> 66 Commands (Other) HELP HELP [ anything [...] ] Displays the help pages of SQL commands or keywords.
> 67 Commands (Other) HELP HELP [ anything [...] ] Displays the help pages of SQL commands or keywords.
> rows: 1
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论