0
我想知道是否有可能找出postgres upsert查询是否导致插入或更新。检查是否插入或更新Postgres查询(通过upsert)
像这样伪码:
insert into teammates (id, email, avatar, timezone)
values ($1, $2, $3, $4)
on conflict (id) do update set
avatar = $3,
timezone = $4
returning id, (updated = didUpdate);