1.生成清空所有表的SQL
SELECT CONCAT('TRUNCATE TABLE ',table_name,';') FROM information_schema.tables WHERE TABLE_SCHEMA = 'db1';2.复制并筛选执行即可