批量删除指定前缀的数据库表

Select CONCAT( 'drop table ', table_name, ';' ) 
FROM information_schema.tables 
Where table_name LIKE 'hn_%';

猜你喜欢

转载自blog.csdn.net/weixin_39195030/article/details/82927260