How to Enable or Disable FOREIGN KEY checks in MySQL

 How to Enable or Disable FOREIGN KEY checks in MySQL

In this blog we will tell you how to enable or disable FOREIGN KEY checks in MySQL database

To disable FOREIGN KEY checks use following command

SET FOREIGN_KEY_CHECKS=0;

To enable FOREIGN KEY checks use following command

SET FOREIGN_KEY_CHECKS=1;

Note: Don’t forgot to enable FOREIGN KEY check after

Tree

Related post