MySQL error 1022 when creating table

前端 未结 3 2073
南方客
南方客 2020-11-29 13:16

MySQL Workbench came up with the following SQL to create a table:

CREATE  TABLE IF NOT EXISTS `mydb`.`errors_reports` (
   `error_id` INT NOT NULL ,
   `repo         


        
3条回答
  •  悲哀的现实
    2020-11-29 13:28

    Try using INSERT IGNORE instead of INSERT where INSERT IGNORE will not insert a new row if a duplicate primary key is found. This should help resolve the problem temporary but I would recommend truncating the table.

提交回复
热议问题