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
Basic Use <!DOCTYPE html> <html lang=&qu...
MySQL 8.0 for Windows v8.0.11 official free versi...
1 Introduction PostgreSQL is a free software obje...
1. View the types of fields in the table describe...
Some web pages may not look large but may be very ...
Table of contents Overview 1. RangeError 2. Refer...
I found a lot of websites that use drop-down or sl...
The Truncate table statement is used to delete/tr...
Transaction isolation level settings set global t...
Recently I want to use goaccess to analyze nginx ...
Effect: <!doctype html> <html> <he...
Table of contents 1. Check the status of the serv...
Table of contents 1. Basic Examples 2. Computed p...
1. MySQL rpm package installation # Download the ...
Docker usage of gitlab gitlab docker Startup Comm...