简体   繁体   中英

Purging without dropping tables - mysql

I have for sure a very simple question :

How to purge tables without suppressing them, knowing that they are numbers of key constraints?

Wrap your code as follows:

set foreign_key_checks = 0;
-- your code here
set foreign_key_checks = 1;

... and Bob's your uncle.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM