the row values updated or deleted either do not make the row unique or they alter multiple rows

前端 未结 3 1453
盖世英雄少女心
盖世英雄少女心 2021-02-05 02:36

I want to delete row and I get this error:

the row values updated or deleted either do not make the row unique or they alter multiple rows

3条回答
  •  有刺的猬
    2021-02-05 02:47

    This might be a bit late but it could help someone. I ran into the same issue today but Akshey's code didn't work for me. My database table didn't contain an ID column, so I added one in and set it's 'Identity Specification' to 'Yes'. I reloaded the table with this new column in it and then was able to delete whichever rows I wanted. Afterwards I deleted the ID column, reloaded and the table and everything was fine.

提交回复
热议问题