批量删除有规则的表

2014-11-24 12:01:54 · 作者: · 浏览: 0

批量删除有规则的表
echo "select concat('drop table ',  table_name ,';') from tables 

where table_schema='hadoop_xxxx' 

and table_name like 'ad_first_url_%';" | 

mysql information_schema | sed -n '2,$p' | mysql hadoop_xxxx