Integrity constraint violation: 1062 Duplicate entry '1' for key 'PRIMARY'

后端 未结 4 1772
旧时难觅i
旧时难觅i 2021-02-19 09:23

I have a databse problem where i get Integrity constraint violation: 1062. I tried some things on my own but it didtn work so now i am asking you guys to see if you people can h

4条回答
  •  谎友^
    谎友^ (楼主)
    2021-02-19 09:53

    I had the same problem, and it was not the auto increment that was causing it. I changed the data type on my table ID from TINYINT(3) to INT(10). Try that. Maybe it'll help.

提交回复
热议问题