Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit4a9effe

Browse files
committed
doc: remove useless MERGE example
Reported-by: dwayne.towell@gmail.comDiscussion:https://postgr.es/m/167699245721.1902146.6479762301617101634@wrigleys.postgresql.orgBackpatch-through: master
1 parente1a76db commit4a9effe

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

‎doc/src/sgml/ref/merge.sgml

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -707,23 +707,6 @@ WHEN NOT MATCHED THEN
707707
</programlisting>
708708
</para>
709709

710-
<para>
711-
Notice that this would be exactly equivalent to the following
712-
statement because the <literal>MATCHED</literal> result does not change
713-
during execution.
714-
715-
<programlisting>
716-
MERGE INTO customer_account ca
717-
USING (SELECT customer_id, transaction_value FROM recent_transactions) AS t
718-
ON t.customer_id = ca.customer_id
719-
WHEN MATCHED THEN
720-
UPDATE SET balance = balance + transaction_value
721-
WHEN NOT MATCHED THEN
722-
INSERT (customer_id, balance)
723-
VALUES (t.customer_id, t.transaction_value);
724-
</programlisting>
725-
</para>
726-
727710
<para>
728711
Attempt to insert a new stock item along with the quantity of stock. If
729712
the item already exists, instead update the stock count of the existing

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp