Use multiple conflict_target in ON CONFLICT clause

前端 未结 9 807
傲寒
傲寒 2020-11-29 02:25

I have two columns in table col1, col2, they both are unique indexed (col1 is unique and so is col2).

I need at insert into this table, u

9条回答
  •  旧时难觅i
    2020-11-29 02:57

    1. Create a constraint (foreign index, for example).

    OR/AND

    1. Look at existing constraints (\d in psq).
    2. Use ON CONSTRAINT(constraint_name) in the INSERT clause.

提交回复
热议问题