MySql # 1005 Невозможно создать таблицу (номер ошибки: 150) - PullRequest
0 голосов
/ 12 апреля 2020

Раздражает MySQL Ошибка при создании и изменении таблицы

MySQL said:
#1005 - Can't create table `school`.`exams` (errno: 150 "Foreign key constraint is incorrectly formed")
------------------------
LATEST FOREIGN KEY ERROR
------------------------
2020-04-12 15:42:01 0x3a24 Error in foreign key constraint of table school/exams:
there is no index in referenced table which would contain
the columns as the first columns, or the data types in the
referenced table do not match the ones in table. Constraint:
,
  CONSTRAINT `exams_ibfk_1` FOREIGN KEY (`exam_id`) REFERENCES `result` (`exam_id`) ON DELETE NO ACTION ON UPDATE NO ACTION
Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...