当前位置:Gxlcms > mysql > 批量删除有规则的表_MySQL

批量删除有规则的表_MySQL

时间:2021-07-01 10:21:17 帮助过:47人阅读

bitsCN.com


批量删除有规则的表

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


bitsCN.com

人气教程排行