Skip to content

Instantly share code, notes, and snippets.

@manelet
Created March 11, 2019 12:13
Show Gist options
  • Save manelet/fcf00cb7c10ccc7b355ee9750c4b4dd4 to your computer and use it in GitHub Desktop.
Save manelet/fcf00cb7c10ccc7b355ee9750c4b4dd4 to your computer and use it in GitHub Desktop.
MySQL - Truncate table foreign key
SET foreign_key_checks = 0;
TRUNCATE TABLE seo;
SET foreign_key_checks = 1;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment