SELECT CONCAT( 'drop table ', table_name, ';' ) FROM information_schema. TABLES WHERE table_schema = 'dbname' AND table_name LIKE 'sth_%';