mysql sql语句删除一个库下的所有表
SELECT concat('DROP TABLE IF EXISTS ', table_name, ';') FROM information_schema.tables WHERE table_schema = '库名';
结果示例
会有delete语句输出
SELECT concat('DROP TABLE IF EXISTS ', table_name, ';') FROM information_schema.tables WHERE table_schema = '库名';
结果示例
会有delete语句输出