Postgresql – Insert on conflict update not working correctly in postgres
I am using on conflict clause for insert query like this: insert into "public"."tbl" ("id", "col1", "col2") values ($1, $2, $3) on conflict ("id") do update set "id" = $4,"col1" = $5,"col2" = $6 returning "id" and I am getting…