Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

mysql how to truncate table with foreign keys

SET FOREIGN_KEY_CHECKS = 0;

TRUNCATE table1;

SET FOREIGN_KEY_CHECKS = 1;
 
PREVIOUS NEXT
Tagged: #mysql #truncate #table #foreign #keys
ADD COMMENT
Topic
Name
3+2 =