<programlisting>
INSERT INTO distributors (did, dname)
VALUES (5, 'Gizmo transglobal'), (6, 'Associated Computing, inc')
- ON CONFLICT (did) UPDATE SET dname = EXCLUDED.dname
+ ON CONFLICT (did) UPDATE SET dname = EXCLUDED.dname;
</programlisting>
</para>
<para>
values appearing in the <literal>did</literal> column:
<programlisting>
INSERT INTO distributors (did, dname) VALUES (7, 'Redline GmbH')
- ON CONFLICT (did) IGNORE
+ ON CONFLICT (did) IGNORE;
</programlisting>
</para>
<para>
INSERT INTO distributors (did, dname) VALUES (8, 'Anvil Distribution')
ON CONFLICT (did) UPDATE
SET dname = EXCLUDED.dname || ' (formerly ' || TARGET.dname || ')'
- WHERE TARGET.zipcode != '21201'
+ WHERE TARGET.zipcode != '21201';
</programlisting>
</para>
<para>
-- just use a regular unique constraint on did if that was
-- all that was available.
INSERT INTO distributors (did, dname) VALUES (9, 'Antwerp Design')
- ON CONFLICT (did WHERE is_active) IGNORE
+ ON CONFLICT (did WHERE is_active) IGNORE;
</programlisting>
</para>
</refsect1>