提交 2d3f7a68 authored 作者: Evgenij Ryazanov's avatar Evgenij Ryazanov

Fix INSERT clause in MERGE USING grammar

上级 47f75a43
...@@ -45,11 +45,7 @@ SELECT * FROM (SELECT ID, COUNT(*) FROM TEST ...@@ -45,11 +45,7 @@ SELECT * FROM (SELECT ID, COUNT(*) FROM TEST
" "
"Commands (DML)","INSERT"," "Commands (DML)","INSERT","
INSERT INTO tableName INSERT INTO tableName insertColumnsAndSource
{ [ ( columnName [,...] ) ]
{ VALUES { ( { DEFAULT | expression } [,...] ) } [,...]
| [ DIRECT ] [ SORTED ] select } } |
{ SET { columnName = { DEFAULT | expression } } [,...] }
"," ","
Inserts a new row / new rows into a table. Inserts a new row / new rows into a table.
...@@ -129,7 +125,7 @@ USING { ( select ) | sourceTableName }[ [AS] sourceAlias ] ...@@ -129,7 +125,7 @@ USING { ( select ) | sourceTableName }[ [AS] sourceAlias ]
ON ( expression ) ON ( expression )
[ WHEN MATCHED THEN [ WHEN MATCHED THEN
[ UPDATE SET setClauseList ] [ delete ] ] [ UPDATE SET setClauseList ] [ delete ] ]
[ WHEN NOT MATCHED THEN insert ] [ WHEN NOT MATCHED THEN INSERT insertColumnsAndSource ]
"," ","
Updates or deletes existing rows, and insert rows that don't exist. The ON clause Updates or deletes existing rows, and insert rows that don't exist. The ON clause
specifies the matching column expression and must be specified. If more than one row specifies the matching column expression and must be specified. If more than one row
...@@ -2312,6 +2308,17 @@ the column in the same way. ...@@ -2312,6 +2308,17 @@ the column in the same way.
NAME NAME
" "
"Other Grammar","Insert columns and source","
{ [ ( columnName [,...] ) ]
{ VALUES { ( { DEFAULT | expression } [,...] ) } [,...]
| [ DIRECT ] [ SORTED ] select } } |
{ SET { columnName = { DEFAULT | expression } } [,...] }
","
Names of columns and their values for INSERT statement.
","
(ID, NAME) VALUES (1, 'Test')
"
"Other Grammar","Int"," "Other Grammar","Int","
[ + | - ] number [ + | - ] number
"," ","
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论