Rumah >pangkalan data >tutorial mysql >[MySQL] TRUNCATE整个库前,打印所有TRUNCATE表语句
无详细内容 无 select CONCAT('TRUNCATE TABLE mydatabase.',TABLE_NAME,';') FROM information_schema.TABLES WHERE TABLE_SCHEMA='mydatabase'
select CONCAT('TRUNCATE TABLE mydatabase.',TABLE_NAME,';') FROM information_schema.TABLES WHERE TABLE_SCHEMA='mydatabase'