#!/bin/sh
hive -e "use csxuy;show tables;"|grep product_tour2 | while read line
do
echo -n "drop table $line;">>temptables.txt
done
tables=`cat temptables.txt`
echo $tables
hive -e "use csxuy;$tables"
rm temptables.txt
hive批量删除表
猜你喜欢
转载自www.cnblogs.com/liyanbin/p/9287954.html
今日推荐
周排行