MySQL: truncate foreign key constrained table Post published:April 28, 2013 Post category:MySQL Post comments:0 Comments SET FOREIGN_KEY_CHECKS=0; TRUNCATE table1; TRUNCATE table2; SET FOREIGN_KEY_CHECKS=1; Share on X (Twitter) Share on Facebook Share on LinkedIn Share on Email Share on WhatsApp Share on Telegram Tags: MySQL Read more articles Next PostMySQL: Select records from today, this week and this month You Might Also Like How to reset AUTO_INCREMENT in MySQL and start counting from 1 again? November 13, 2019