Skip to content

Instantly share code, notes, and snippets.

@Ir001
Created June 13, 2021 07:32
Show Gist options
  • Save Ir001/f12f9289edb07c952391745fb3464ac9 to your computer and use it in GitHub Desktop.
Save Ir001/f12f9289edb07c952391745fb3464ac9 to your computer and use it in GitHub Desktop.
How to TRUNCATE foreign table
SET FOREIGN_KEY_CHECKS = 0;
TRUNCATE table $table_name;
SET FOREIGN_KEY_CHECKS = 1;
#DWYOR
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment