mysql删除库中所有表

拼接删除表名的sql语句,然后统一执行。

select concat("DROP TABLE IF EXISTS ", table_name, ";") from information_schema.tables where table_schema="database_name";

posted @ 2021-01-19 15:35  去™远航  阅读(62)  评论(0)    收藏  举报