【转】清空mysql一个库中的所有表的数据

方法1:生成清空所有表的SQL

select CONCAT('TRUNCATE TABLE ',table_name,';') from information_schema.tables where TABLE_SCHEMA = 'db1';

方法二:用navicat,每个表 右键 清空表

原文地址:https://www.cnblogs.com/aishangyizhihu/p/10910048.html