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);