diff options
author | Bruce Momjian | 2024-11-01 20:20:27 +0000 |
---|---|---|
committer | Bruce Momjian | 2024-11-01 20:20:27 +0000 |
commit | 4a9effe45ee96f7105ba19285eff18a634bfee01 (patch) | |
tree | 84bbd6c0333d241ff08de61b7360735a65470d07 /doc/src | |
parent | e1a76db1a880c2e80ae96c40a31b0ee589e06562 (diff) |
doc: remove useless MERGE example
Reported-by: [email protected]
Discussion: https://postgr.es/m/[email protected]
Backpatch-through: master
Diffstat (limited to 'doc/src')
-rw-r--r-- | doc/src/sgml/ref/merge.sgml | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/doc/src/sgml/ref/merge.sgml b/doc/src/sgml/ref/merge.sgml index 97b34b9fcaf..d80a5c5cc9b 100644 --- a/doc/src/sgml/ref/merge.sgml +++ b/doc/src/sgml/ref/merge.sgml @@ -708,23 +708,6 @@ WHEN NOT MATCHED THEN </para> <para> - Notice that this would be exactly equivalent to the following - statement because the <literal>MATCHED</literal> result does not change - during execution. - -<programlisting> -MERGE INTO customer_account ca -USING (SELECT customer_id, transaction_value FROM recent_transactions) AS t -ON t.customer_id = ca.customer_id -WHEN MATCHED THEN - UPDATE SET balance = balance + transaction_value -WHEN NOT MATCHED THEN - INSERT (customer_id, balance) - VALUES (t.customer_id, t.transaction_value); -</programlisting> - </para> - - <para> Attempt to insert a new stock item along with the quantity of stock. If the item already exists, instead update the stock count of the existing item. Don't allow entries that have zero stock. Return details of all |