文章 2017-11-08 来自:开发者社区

MySQL批量删除指定前缀表

Select CONCAT( 'drop table ', table_name, ';' )   FROM information_schema.tables   Where table_name LIKE 'dede_%';      本文转自aaron428 51CTO博客,原文链接http://blog.51cto.com/aaronsa/...

文章 2016-04-13 来自:开发者社区

【MySQL】批量删除mysql中数据库中的表

要删除某个数据库下面所有表的方法: 方法一 比如删除test数据库下所有表,如果要删除某些前缀的表 mysql -uroot -h127.0.0.1 --skip-column-names -A -e "select concat('drop table test.', table_name,';') from information_schema.tables where table_s...

文章 2015-12-14 来自:开发者社区

MYSQL 某个数据库下所有表的 批量删除表语句

select concat('drop table ',table_name,';') from information_schema.TABLES where table_schema='test'; 其中 test 是数据库, 执行输出的SQL语句即可

本页面内关键词为智能算法引擎基于机器学习所生成,如有任何问题,可在页面下方点击"联系我们"与我们沟通。

产品推荐

数据库

数据库领域前沿技术分享与交流

+关注
相关镜像