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
Background Many website designs generally consist...
Table of contents Install: 1. Basic use of firewa...
Object's hasOwnProperty() method returns a Bo...
How to use the code in NetEase Blog: First log in...
Table of contents 1. Preparation 2. Decompression...
Implementation effect: 1. count(1) and count(*) W...
A few days ago, I exchanged some knowledge about ...
There are two ways to install nodejs in linux. On...
Table of contents 1. Teleport usage 2. Complete t...
Table of contents 1. Introduction 2. Advantages 3...
Preface: Vue3.0 implements echarts three-dimensio...
Table of contents 1. Introduction 2. The differen...
Chapter 1 Source Code Installation The installati...
【background】 I encountered a very embarrassing th...
1. Download the tomcat image docker pull tomcat:8...