SET FOREIGN_KEY_CHECKS=0;
TRUNCATE TABLE USERS;
SET FOREIGN_KEY_CHECKS=1;
ALTER TABLE jobs DROP FOREIGN KEY constraint_name
SET foreign_key_checks = 0;
ALTER TABLE table_name DROP FOREIGN KEY constraint_name
ALTER TABLE table_name
DROP FOREIGN KEY constraint_name;
Code language: SQL (Structured Query Language) (sql)
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;