私はon conflict
ステートメントを使用してアップアップを行っていますが、エラーが発生します:Syntax error near to line 58: ON CONFLICT (id_producto_final) DO
。コンフリクトpostgresql文はジョインで動作しますか?
クエリ文は次のとおりです。
Insert into table1 (id, value1, description, isactivated)
select a.id, b.value1, c.description, d.isactivated
from tableA as a
left join tableB as b on b.id=a.id1
left join tableC as c on c.id=a.id2
left join tableD as d on d.id=a.id3
ON CONFLICT (id) DO UPDATE SET isactivated= EXCLUDED.isactivated
それはdo nothing
で動作していないどちらも、そうexcluded table
エラーではありません。だから私はおそらくエラーソースに参加しているかもしれないと推測していますが、私は理由も知りません。
誰でも手助けできますか?
から始まる解釈され –
@VaoTsun 9.4.10 – Maik