Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
On conflict
drop table if exists t; create table t(i serial, x int unique, y int); insert into t(x,y) values(1,1) on conflict(x) do update set x = excluded.x; insert into t(x,y) values(1,1) on conflict(x) do update set x = excluded.x; -- Works fine --insert into t(x,y) values(1,1),(1,2) on conflict(x) do update set x = excluded.x; -- Uncomment, error here
run
|
edit
|
history
|
help
0
podd version
Stack
test
Replace key of json
Descriptor test
Assignment 1(SET A)
statistics
Postgres CrossTab for query with variable number of columns
SQL - Social Network Analysis by Patrick Lin
postgres group by by function