Mysql删除所有表
2018-10-11 本文已影响0人
gringotts
-
获得Drop所有表结构的DLL语句
SELECT concat('DROP TABLE IF EXISTS ', table_name, ';') FROM information_schema.tables WHERE table_schema = 'data_name';
-
执行上述操作后的DLL语句
获得Drop所有表结构的DLL语句
SELECT concat('DROP TABLE IF EXISTS ', table_name, ';') FROM information_schema.tables WHERE table_schema = 'data_name';
执行上述操作后的DLL语句