背景
mysql8 navicat
方法
查出所有表
SELECT CONCAT('drop table ',table_name,';') FROM information_schema.`TABLES` WHERE table_schema='数据库名';
可得出以下结果
将结果导出,复制sql运行即可
mysql8 navicat
查出所有表
SELECT CONCAT('drop table ',table_name,';') FROM information_schema.`TABLES` WHERE table_schema='数据库名';
可得出以下结果
将结果导出,复制sql运行即可