SQL批量删除指定表名的表
[1]获得批量删除的命令:
Select CONCAT( 'drop table ', table_name, ‘;’ ) FROM information_schema.tables Where table_name collate utf8_bin LIKE ‘Jyys%_aaa’ AND TABLE_SCHEMA = “***”
[2]删除表,依据生成的文本。复制之后。运行就可以实现删表。
Select * FROM information_schema.tables Where table_name collate utf8_bin LIKE ‘Jyys%_aaa’ AND TABLE_SCHEMA = “*****”