MYSQL 某个数据库下所有表的 批量删除表语句

    xiaoxiao2025-10-23  3

    select concat('drop table ',table_name,';') from information_schema.TABLES where table_schema='test';

    其中 test 是数据库, 执行输出的SQL语句即可

    最新回复(0)