-- 生成删除xxx数据库的所有表的sql语句
SELECT CONCAT('drop table ',table_name,';') FROM information_schema.`TABLES` WHERE table_schema='xxx';
-- 补充:
-- 生成查询xxxx数据库的所有表的sql语句
SELECT CONCAT('select * from ',table_name,';') FROM information_schema.`TABLES` WHERE table_schema='xxx';