MERGE INSERT allows only one VALUES clause

Doc syntax and brief mention of restriction
This commit is contained in:
Simon Riggs 2018-04-05 12:03:42 +01:00
parent 17d8beb4f5
commit a5d86181ec
1 changed files with 2 additions and 1 deletions

View File

@ -41,7 +41,7 @@ and <replaceable class="parameter">merge_insert</replaceable> is
INSERT [( <replaceable class="parameter">column_name</replaceable> [, ...] )] INSERT [( <replaceable class="parameter">column_name</replaceable> [, ...] )]
[ OVERRIDING { SYSTEM | USER } VALUE ] [ OVERRIDING { SYSTEM | USER } VALUE ]
{ VALUES ( { <replaceable class="parameter">expression</replaceable> | DEFAULT } [, ...] ) | DEFAULT VALUES } { VALUES ( { <replaceable class="parameter">expression</replaceable> | DEFAULT } ) | DEFAULT VALUES }
and <replaceable class="parameter">merge_update</replaceable> is and <replaceable class="parameter">merge_update</replaceable> is
@ -285,6 +285,7 @@ DELETE
<command>INSERT</command> actions cannot contain sub-selects. <command>INSERT</command> actions cannot contain sub-selects.
</para> </para>
<para> <para>
Only one <literal>VALUES</literal> clause can be specified.
The <literal>VALUES</literal> clause can only refer to columns from The <literal>VALUES</literal> clause can only refer to columns from
the source relation, since by definition there is no matching target row. the source relation, since by definition there is no matching target row.
</para> </para>