删除某个数据库下所有表
1、SELECT CONCAT('drop table ',table_name,';') FROM information_schema.`TABLES` WHERE table_schema='数据库名',拼出所有表的删除语句;
2、执行生成的语句
posted on 2021-04-29 10:31 哥*的不是代码是刚子 阅读(79) 评论(0) 收藏 举报
1、SELECT CONCAT('drop table ',table_name,';') FROM information_schema.`TABLES` WHERE table_schema='数据库名',拼出所有表的删除语句;
2、执行生成的语句
posted on 2021-04-29 10:31 哥*的不是代码是刚子 阅读(79) 评论(0) 收藏 举报