#!/bin/bash
first=$1
second=$2
while [ "$first" != "$second" ]
do
(GP连接字符串) <<EOF
alter table tablename${
first} DROP partition ${
first};
\q
EOF
let first=`date -d "-1 days ago ${first}" +%Y%m%d`
done
Greenplum删除指定日期之间的分区
猜你喜欢
转载自blog.csdn.net/hardyer/article/details/103121742
今日推荐
周排行