暂无图片
暂无图片
暂无图片
暂无图片
暂无图片

Mysql数据库批量删除数据表操作

巴韭特锁螺丝 2021-12-12
208

https://blog.csdn.net/a463620704/article/details/104846581/

使用

Select CONCAT( 'drop table ', table_name, ';' ) FROM information_schema.tables Where table_name LIKE '__prefix_%';

可生成drop表语句,然后可以批量删除:

drop table __prefix_20180129;

drop table __prefix_20180130;

drop table __prefix_20180131;


文章转载自巴韭特锁螺丝,如果涉嫌侵权,请发送邮件至:contact@modb.pro进行举报,并提供相关证据,一经查实,墨天轮将立刻删除相关内容。

评论