insert … on conflict …
BigQuery
Db2 (LUW)
DuckDB
H2
MariaDB
MySQL
Oracle DB
PostgreSQL
SQL Server
SQLite
2015
2017
2019
2021
2023
3.25.0 - 3.51.0
a
9.5 - 18
1.3.0 - 1.4.0
b
⚡ 1.0.0 - 1.2.0
b
⚡ 2.0
b
On conflict
must not immediately follow the
from
clause of a query. Add
where true
if needed
Syntax accepted but clause apparently ignored
Also
log errors
for
insert
,
update
,
delete
, and
merge
(“DML error logging”)