Solutions exist MySQL table foreign key relationships can not empty the data

first

SET FOREIGN_KEY_CHECKS=0;

Then delete delete, and then

SET FOREIGN_KEY_CHECKS=1;

Guess you like

Origin www.cnblogs.com/zxcoder/p/11834158.html