db2分区相关操作

删除指定日期分区表

-- t_log={data_dt, content} ,part20220101=分区名称
-- 分离分区
alter table t_log detach partition part20220101 into t_log_20220101;
-- 删除分离出来的表
drop table t_log_20220101;
-- 查看分区
select * from syscat.datapartition where tabname = 't_log';
posted @ 2022-04-26 22:21  springff  阅读(169)  评论(0编辑  收藏  举报