第一步:生成sql脚本
mysql -h 172.168.1.109 -uroot -proot -Ne "use statdb; SELECT CONCAT( 'drop table ', table_name, ';' ) FROM information_schema.tables WHERE table_schema='statdb' AND table_name LIKE 't_stat_%';" > drop.sql
第二步:执行sql脚本
mysql -h 172.168.1.109 -uroot -proot -D statdb < drop.sql