mysql删掉某一个库下的所有表

第一步:

select concat('drop table ',table_name,';') from information_schema.TABLES where table_schema='mydb';  //mydb为某个库的名称

第二步:

把第一步的执行结果导出,然后全部执行

猜你喜欢

转载自blog.csdn.net/CoderTnT/article/details/86497642
今日推荐