mysql 删除所有表

#use information_schema;
#select concat('drop table ',table_name,';') from tables where TABLE_SCHEMA = 'nxpt';
拼接删除SQL


#select concat('TRUNCATE table ',table_name,';') from tables where TABLE_SCHEMA = 'nxpt';不写日志

 

SET FOREIGN_KEY_CHECKS=0;#取消外键约束状态

 

posted @ 2017-02-27 13:29  已老  阅读(10304)  评论(0编辑  收藏  举报