我将使用什么语法来删除多个具有类似模式的表?就像是:
从`Database1` LIKE“SubTable *”下降表
解决方法:
不.但您可以从information_schema数据库中选择表名:
select table_name
from information_schema.tables
where table_schema = 'Database1'
and table_name like 'SubTable%'
然后迭代结果集中的表名并删除它们
标签:sql-drop,mysql
来源: https://codeday.me/bug/20190827/1737332.html