select concat('truncate table ','数据库名称.',table_name,';') from information_schema.TABLES where table_schema='数据库名称' and table_type='BASE TABLE';
批量生成清表脚本SQL
最新推荐文章于 2024-01-05 11:30:47 发布
select concat('truncate table ','数据库名称.',table_name,';') from information_schema.TABLES where table_schema='数据库名称' and table_type='BASE TABLE';