本文共 218 字,大约阅读时间需要 1 分钟。
其中pms就是你要删除表的前缀,替换成你所需的即可
select group_concat(m separator ';') DROP_sqlfrom (Select CONCAT( 'drop table ', table_name, '' ) m FROM information_schema.tables Where table_name LIKE 'pms_%') a
转载地址:http://pkqgn.baihongyu.com/