F
F
Flower Genius2018-03-06 10:49:27
MySQL
Flower Genius, 2018-03-06 10:49:27

Why is there a global cataclysm of a personal and non-professional nature when creating connections?

two tables. Vacancies AND responses Associate

id (PK, unique)
AND in responses id_vac(index)

Fields converted to InnoDB.
Gives an error of a personal, non-professional nature.
5a9e476bb00f8097031054.jpeg

As a matter of fact

ALTER TABLE `response` ADD FOREIGN KEY ( `vac_id` ) REFERENCES `vacancies` (`id`) ON DELETE CASCADE ON UPDATE CASCADE ;


What is wrong and why does it refuse to create FK ?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
L
Lazy @BojackHorseman MySQL, 2018-03-06
@dunakov1212

referential integrity broken? are there response.vac_id values ​​that don't match in vacancies.id ?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question