How to set FOREIGN KEY check in MySQL

 How to set FOREIGN KEY check in MySQL

In this blog we will tell you how to set 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

Leave a Reply

Your email address will not be published. Required fields are marked *