刪除數據庫中的所有表而不刪除數據庫
mysql
SELECT CONCAT( 'drop table ', table_name, ';' ) from information_schema.tables
where table_schema='數據庫名稱'
這會產生刪除每個表的sql語句,批量執行即可
SELECT CONCAT( 'drop table ', table_name, ';' ) from information_schema.tables
where table_schema='數據庫名稱'
這會產生刪除每個表的sql語句,批量執行即可