1SELECT
2 Concat('TRUNCATE TABLE ', TABLE_NAME)
3FROM
4 INFORMATION_SCHEMA.TABLES
5WHERE
6 table_schema = 'db_name';
7
1SELECT Concat('TRUNCATE TABLE ',table_schema,'.',TABLE_NAME, ';')
2FROM INFORMATION_SCHEMA.TABLES where table_schema in ('db1_name','db2_name');