mysql中删除数据库中所有的表

来源:互联网 发布:mac zip命令安装 编辑:程序博客网 时间:2024/05/16 10:13
连接information_schema库
select concat('drop table ',table_name,';') from TABLES where table_schema='数据库名称';
查询出来就是所有表的删除语句,直接手动把这些语句在mysql客户端中执行即可
原创粉丝点击