Skip to content

Instantly share code, notes, and snippets.

@karrikas
Created November 22, 2015 07:53
Show Gist options
  • Save karrikas/f29d45aa0c0bd70f5a36 to your computer and use it in GitHub Desktop.
Save karrikas/f29d45aa0c0bd70f5a36 to your computer and use it in GitHub Desktop.
Drop tables with foreign keys in mysql
SET FOREIGN_KEY_CHECKS = 0;
drop table if exists customers;
drop table if exists orders;
drop table if exists order_details;
SET FOREIGN_KEY_CHECKS = 1;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment