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
Whether you're trying to salvage data from a ...
Related articles: Install Docker using yum under ...
XML/HTML CodeCopy content to clipboard < butto...
In front-end development, there are many ways to ...
<br />Original source: http://www.a-xuan.cn/...
Here, clever use of CSS techniques allows you to g...
Preface JavaScript continues to grow and prosper ...
Table of contents 1. Introduction 2. The differen...
This article shares the detailed steps of install...
In the previous blog, we talked about using Nginx...
This article shares the specific code of the vue3...
Defining the type of data fields in MySQL is very...
When you first start learning Linux, you first ne...
environment: 1. CentOS6.5 X64 2.mysql-5.6.34-linu...
Scenario simulation: Some domestic companies need...