SELECT CONCAT('drop table ', table_name, ';') FROM information_schema. TABLES WHERE table_name LIKE 'xxx_%';