1、SELECT CONCAT('drop table ',table_name,';') FROM information_schema.`TABLES` WHERE table_schema='数据库名';
2、复制结果集运行即可(如使用工具则直接点结果集即默认全部选中可直接复制).
1、SELECT CONCAT('drop table ',table_name,';') FROM information_schema.`TABLES` WHERE table_schema='数据库名';
2、复制结果集运行即可(如使用工具则直接点结果集即默认全部选中可直接复制).
转载于:https://www.cnblogs.com/arno92/p/9055585.html