mysql> select CONCAT('truncate TABLE ',table_schema,'.',TABLE_NAME, ';') from INFORMATION_SCHEMA.TABLES where table_schema in ('dd');
mysql> truncate TABLE dd.zyx_admin; truncate TABLE dd.zyx_admin_issued; truncate TABLE dd.zyx_band; truncate TABLE dd.zyx_baodansq; truncate TABLE dd.zyx_baodanzx;
truncate TABLE dd.zyx_buy_stocks;
数据库(dd)中表就被清空了