Bulk operations mysql database table

SELECT CONCAT('truncate TABLE ',table_schema,'.',TABLE_NAME, ';') FROM INFORMATION_SCHEMA.TABLES WHERE table_schema IN ('ttsf_production');

 

Guess you like

Origin www.cnblogs.com/shenyixin/p/11302508.html
Recommended