Answer the question
In order to leave comments, you need to log in
Is it possible to get around the "duplicate key value violates unique constraint" error when updating?
Is it possible to bypass the unique key constraint if I update the same row with new data?
for example table cards [id, user_id, status]
user_id is a unique value.
we have record
180, 1, "bla-bla"
Do
UPDATE cards SET user_id = 1, status = 'test', WHERE id = 180
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question