mysql删除库中所有表
拼接删除表名的sql语句,然后统一执行。
select concat("DROP TABLE IF EXISTS ", table_name, ";") from information_schema.tables where table_schema="database_name";
拼接删除表名的sql语句,然后统一执行。
select concat("DROP TABLE IF EXISTS ", table_name, ";") from information_schema.tables where table_schema="database_name";