Disabling and enabling MySQL foreign key constraints: Whether MySQL foreign key constraints are enabled is indicated by a global variable: FOREIGN_KEY_CHECKS=0; Disabled FOREIGN_KEY_CHECKS=1; Enabled To view the current value of FOREIGN_KEY_CHECKS, use the following command: SELECT @@FOREIGN_KEY_CHECKS; Disable foreign key constraints: SET FOREIGN_KEY_CHECKS=0; Enable foreign key constraints: SET FOREIGN_KEY_CHECKS=1; The above disabling and enabling commands of MySQL foreign key constraints are all the content that the editor shares with you. I hope it can give you a reference. I also hope that you will support 123WORDPRESS.COM. You may also be interested in:
|
<<: Example steps for implementing class selectors and name attribute selectors in js
>>: How to disable foreign key constraint checking in MySQL child tables
The following operation demonstrations are all ba...
Table of contents JavaScript prototype chain Obje...
When I was helping someone adjust the code today,...
We all know that we can use the mkdir command to ...
Introducing Server-U software Server-U is a very ...
Version update, the password field in the origina...
01PARTCoreWebApi tutorial local demonstration env...
Since its release in 2013, Docker has been widely...
This article shares the specific code of js to im...
1. View openjdk rpm -qa|grep jdk 2. Delete openjd...
Table of contents Overview Solution 1: Closures S...
Preface Under the influence of some CSS interacti...
Use ktl tool to synchronize data from mysql to my...
Preface This article mainly introduces the releva...
1. Commonly used high-order functions of arrays S...