Reputation: 13178
I tried searching online for this...I had a row that I inserted into the database. I removed it. The table has a Unique Key on a particular column. When I try to insert a new row with the same value for the unique key, it fails saying duplicate entry. However, there is no duplicate entry since the row is not there! Is there a way to reset this?
I would like the table to accept values that are unique to what is there right now. I tried to remove the unique key constraint from the table to see if that would work, however, when I added it back, it was having the same issue.
Upvotes: 0
Views: 63
Reputation: 21015
Maybe you perform dirty reading? and the deletion did not commit? try use the read commit option, I think it's called isolation level.
Upvotes: 1