Error Code: 1062. Duplicate entry '1' for key 'PRIMARY'

后端 未结 8 2191
既然无缘
既然无缘 2020-12-01 03:55

I have a problem on this error message, when i try this:

INSERT INTO `PROGETTO`.`UFFICIO-INFORMAZIONI` (`ID`, `viale`, `num_civico`,  
`data_apertura`, `data         


        
8条回答
  •  生来不讨喜
    2020-12-01 04:07

    I just encountered the same issue but here it seemed to come from the fact that I declared the ID-column to be UNsigned and that in combination with an ID-value of '0' (zero) caused the import to fail...

    So by changing the value of every ID (PK-column) that I'd declared '0' and every corresponding FK to the new value, my issue was solved.

提交回复
热议问题