1、查询出类似的数据表
Select CONCAT( 'drop table ', table_name, ';' )
FROM information_schema.tables
Where table_name LIKE 'dede_%';
2、将查询结果进行复制,黏贴为sql语句

3、在查询命令窗口执行
本文介绍了一种方法,用于查询并生成针对特定前缀的所有数据表的删除SQL语句,便于批量操作。
1、查询出类似的数据表
Select CONCAT( 'drop table ', table_name, ';' )
FROM information_schema.tables
Where table_name LIKE 'dede_%';
2、将查询结果进行复制,黏贴为sql语句

3、在查询命令窗口执行
534
709
1420

被折叠的 条评论
为什么被折叠?