mirror of
https://github.com/postgres/postgres.git
synced 2025-11-21 00:42:43 +03:00
Doc: include MERGE in variable substitution command list
Backpatch to 15, where MERGE was introduced. Reported-by: <emorgunov@mail.ru> Author: David Rowley <dgrowleyml@gmail.com> Discussion: https://postgr.es/m/176278494385.770.15550176063450771532@wrigleys.postgresql.org Backpatch-through: 15
This commit is contained in:
@@ -4962,13 +4962,13 @@ $$ LANGUAGE plpgsql;
|
|||||||
<para>
|
<para>
|
||||||
Variable substitution currently works only in <command>SELECT</command>,
|
Variable substitution currently works only in <command>SELECT</command>,
|
||||||
<command>INSERT</command>, <command>UPDATE</command>,
|
<command>INSERT</command>, <command>UPDATE</command>,
|
||||||
<command>DELETE</command>, and commands containing one of
|
<command>DELETE</command>, <command>MERGE</command> and commands
|
||||||
these (such as <command>EXPLAIN</command> and <command>CREATE TABLE
|
containing one of these (such as <command>EXPLAIN</command> and
|
||||||
... AS SELECT</command>),
|
<command>CREATE TABLE ... AS SELECT</command>), because the main SQL
|
||||||
because the main SQL engine allows query parameters only in these
|
engine allows query parameters only in these commands. To use a
|
||||||
commands. To use a non-constant name or value in other statement
|
non-constant name or value in other statement types (generically called
|
||||||
types (generically called utility statements), you must construct
|
utility statements), you must construct the utility statement as a string
|
||||||
the utility statement as a string and <command>EXECUTE</command> it.
|
and <command>EXECUTE</command> it.
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
</sect2>
|
</sect2>
|
||||||
|
|||||||
Reference in New Issue
Block a user