SQL批量删除相同前缀的表
-- 执行得到批量删除语句 select CONCAT('drop table ', table_name, ';') from information_schema.tables where table_name like 'pre_%';
-- 执行结果: drop table pre_account; drop table pre_user;
-- 执行得到批量删除语句 select CONCAT('drop table ', table_name, ';') from information_schema.tables where table_name like 'pre_%';
-- 执行结果: drop table pre_account; drop table pre_user;