select concat('truncate table ','数据库名称.',table_name,';') from information_schema.TABLES where table_schema='数据库名称' and table_type='BASE TABLE';
批量生成清表脚本SQL
最新推荐文章于 2025-02-06 14:41:03 发布
select concat('truncate table ','数据库名称.',table_name,';') from information_schema.TABLES where table_schema='数据库名称' and table_type='BASE TABLE';