执行select语句生成所有truncate语句
select CONCAT('truncate TABLE ',TABLE_NAME, ';') from INFORMATION_SCHEMA.TABLES where table_schema in ('www_iyuu_cn')
执行select语句生成DROP语句
select CONCAT('DROP TABLE ',TABLE_NAME, ';') from INFORMATION_SCHEMA.TABLES where table_schema in ('www_iyuu_cn')
版权属于:大卫科技Blog
本文链接:https://www.iyuu.cn/archives/471/
转载时须注明出处