1. Take the mysql library that comes with mysql as an example:
--Delete all tables whose table name is mysql database, (export the query results with excle and put them in the database for execution) SELECT CONCAT('drop table ',table_name,';') FROM information_schema.`TABLES` WHERE table_schema='mysql'; --Delete all tables starting with help_ whose table name is mysql database (export the query results with excle and execute them in the database) SELECT CONCAT('drop table ',t.`TABLE_NAME`,'; ') dropsql FROM information_schema.`TABLES` t WHERE t.`TABLE_NAME` LIKE 'help_%';