Mirror site is read only www.netnr.com
netnr/ truncate.sql 2018-09-21 14:16
truncate 清空所有表,mysql 数据库
-- 生成清理所有表语句;
SELECT CONCAT('truncate TABLE ', TABLE_SCHEMA, '.', TABLE_NAME, ';')
FROM INFORMATION_SCHEMA.TABLES
WHERE TABLE_SCHEMA IN ( '数据库名' );