Question : mysql how to truncate table with foreign keys
Answered by : cloudy-caracal-kuy8brumvr4u
SET FOREIGN_KEY_CHECKS = 0;
TRUNCATE table1;
SET FOREIGN_KEY_CHECKS = 1;
Source : | Last Update : Sat, 13 Mar 21
Answered by : cloudy-caracal-kuy8brumvr4u
SET FOREIGN_KEY_CHECKS = 0;
TRUNCATE table1;
SET FOREIGN_KEY_CHECKS = 1;
Source : | Last Update : Sat, 13 Mar 21