1獲取刪除語句
Select CONCAT( 'drop table ', table_name, ';' )
FROM information_schema.tables
Where table_schema=數據庫名' table_name
LIKE
'模糊
表名%
';
例子 : 獲取mydatabase 庫 下的所有 ‘’sql_‘’開頭的表的刪除語句;
Select CONCAT( 'drop table ', table_name, ';' )
FROM information_schema.tables
Where table_schema='mydatabase' table_name
LIKE
' sql_%
'
;
2 復制 輸出的結果 再運行刪除