postgresql duplicate key violates unique constraint

前端 未结 8 983
隐瞒了意图╮
隐瞒了意图╮ 2020-12-02 10:37

Hi i have a question i know this was posted many times but i didn\'t find an answer to my problem. The problem is that i have a table and a column \"id\" i want it to be uni

8条回答
  •  心在旅途
    2020-12-02 11:00

    On the first place, I thought the problem was the sequence :). But the error says ERROR: duplicate key value violates unique constraint "ndxregnum".. So I look for the name "ndxregnum" from my database. I found it under my table indexes. Then I delete "ndxregnum". Then error is gone. everything back to normal.

    I hope this will help you...

提交回复
热议问题