MySQL error 1022 when creating table

前端 未结 3 2064
南方客
南方客 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:44

    It seems you're creating an index on the foreign key columns. When creating a foreign key in InnoDb, one will be created automatically.

    See this thread.

提交回复
热议问题