批量删除有规则的表

来源:互联网 发布:python 协同过滤 编辑:程序博客网 时间:2024/06/05 11:06
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
原创粉丝点击