[MySQL] TRUNCATE整个库前,打印所有TRUNCATE表语句

清华大佬耗费三个月吐血整理的几百G的资源,免费分享!....>>>

select CONCAT('TRUNCATE TABLE mydatabase.',TABLE_NAME,';') FROM information_schema.TABLES WHERE TABLE_SCHEMA='mydatabase'