DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR SQL
cannot truncate a table referenced in a foreign key constraint
SET FOREIGN_KEY_CHECKS = 0; TRUNCATE table $table_name; SET FOREIGN_KEY_CHECKS = 1;
Source by stackoverflow.com #
PREVIOUS
NEXT
Tagged:
#truncate
#table
#referenced
#foreign
#key
#constraint
ADD COMMENT
Topic
COMMENT
Name
7+8 =
Submit