im tryign to upsert on PostgreSQL using this query
insert into users (id,name) values (1,'henry')
on conflict (users.id) do update set
(id,name)=(EXCLUDED.id,EXCLUDED.name)
and keep getting this error
ERROR: syntax error at or near ")"
LINE 2: on conflict (users.id) do update set
it works if i do it this way
insert into users (id,name) values (1,'henry')
on conflict (id) do update set
(id,name)=(EXCLUDED.id,EXCLUDED.name)
how to specify the table name on the query? like users.id