@@ -2064,8 +2064,8 @@ SELECT <replaceable>select_list</replaceable> FROM <replaceable>table_expression
20642064 in a <literal>WITH</literal> clause can be a <command>SELECT</command>,
20652065 <command>INSERT</command>, <command>UPDATE</command>, or <command>DELETE</command>; and the
20662066 <literal>WITH</literal> clause itself is attached to a primary statement that can
2067- also be a <command>SELECT</command>, <command>INSERT</command>, <command>UPDATE</command>, or
2068- <command>DELETE</command>.
2067+ be a <command>SELECT</command>, <command>INSERT</command>, <command>UPDATE</command>,
2068+ <command>DELETE</command>, or <command>MERGE</command> .
20692069 </para>
20702070
20712071 <sect2 id="queries-with-select">
@@ -2587,7 +2587,8 @@ SELECT * FROM w AS w1 JOIN w AS w2 ON w1.f = w2.f;
25872587 <para>
25882588 The examples above only show <literal>WITH</literal> being used with
25892589 <command>SELECT</command>, but it can be attached in the same way to
2590- <command>INSERT</command>, <command>UPDATE</command>, or <command>DELETE</command>.
2590+ <command>INSERT</command>, <command>UPDATE</command>,
2591+ <command>DELETE</command>, or <command>MERGE</command>.
25912592 In each case it effectively provides temporary table(s) that can
25922593 be referred to in the main command.
25932594 </para>
@@ -2597,8 +2598,9 @@ SELECT * FROM w AS w1 JOIN w AS w2 ON w1.f = w2.f;
25972598 <title>Data-Modifying Statements in <literal>WITH</literal></title>
25982599
25992600 <para>
2600- You can use data-modifying statements (<command>INSERT</command>,
2601- <command>UPDATE</command>, or <command>DELETE</command>) in <literal>WITH</literal>. This
2601+ You can use most data-modifying statements (<command>INSERT</command>,
2602+ <command>UPDATE</command>, or <command>DELETE</command>, but not
2603+ <command>MERGE</command>) in <literal>WITH</literal>. This
26022604 allows you to perform several different operations in the same query.
26032605 An example is:
26042606
0 commit comments