Skip to content
Search for:
All posts
Home
How to
How to
MySQL – How to temporarily disable a foreign key constraint?
14.05.2022
0
0
To disable foreign key constraints when you want to truncate a table: Use FOREIGN_KEY_CHECKS and remember to enable it when you’re done: Or you can use