MYSQL disable primary foreign key constraints

we can use
  
SET FOREIGN_KEY_CHECKS=0;

to disable foreign key constraints.

Use it later
  
SET FOREIGN_KEY_CHECKS=1;

to enable foreign key constraints.

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=327041382&siteId=291194637