Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

how to truncate table with foreign key constraint

SET FOREIGN_KEY_CHECKS = 0;
TRUNCATE table1;
 
PREVIOUS NEXT
Tagged: #truncate #table #foreign #key #constraint
ADD COMMENT
Topic
Name
3+8 =