首先删除单个表的sql语句为:drop table xxx;
但是有多个表进行删除时,这个语句就不太适用;当时想着写法是:drop table like 'xxx%';
不出意外提示语法错误,看来操作表操作并不像我们操作表的记录sql语句语法那样。
select CONCAT( 'drop table ', table_name, ';' )
FROM information_schema.tables
Where table_name LIKE '表名前缀_%';
The query is for multiple SQL statements to delete tables, and the records are exported as txt files, and the delete statements can be copied and executed in batches.