mysql close or start foreign key constraint command

mysql close or start foreign key constraint command

MySQL closes foreign key constraints

SET FOREIGN_KEY_CHECKS=0;

mysql start foreign key constraint

SET FOREIGN_KEY_CHECKS=1;

Note: This operation can be performed under special circumstances to complete special services.

Guess you like

Origin blog.csdn.net/Asia1752/article/details/111985032
Recommended