SQL query error:
ALTER TABLE `place` ADD FOREIGN KEY (`how`) REFERENCES `soc_pasport`.`place_how`(`id`) ON DELETE CASCADE ON UPDATE CASCADE; MySQL Answer: Documentation
#1452 - Cannot add or update a child row: a foreign key constraint fails (`soc_pasport`.`#sql-19e0_10a`, CONSTRAINT `#sql-19e0_10a_ibfk_1` FOREIGN KEY (`how`) REFERENCES `place_how` (`id`) ON DELETE CASCADE ON UPDATE CASCADE)
select * from place where how not in (select id from place_how)at least one record? - ZufirCREATE TABLE t2 LIKE t1), add this link, and then load the data from the originals (first one, then a lot) with theINSERT IGNOREquery. After that, see which records in the "many" table were not copied, and try to understand for what reason. - Akina