当前位置:网站首页>oracle分区的相关操作
oracle分区的相关操作
2022-04-23 06:05:00 【旺财2】
查看分区内的数据
select count(1) from 表名 partition(分区名);
查看子分区内的数据
select count(1) from 表名 subpartition(分区名);
删除分区(操作后,分区和分区内的数据都没有了)
ALTER TABLE 表名 DROP PARTITION 分区名 update global indexes;
删除子分区(操作后,子分区和子分区内的数据都没有了)
ALTER TABLE 表名 DROP SUBPARTITION 子分区名 update global indexes;
truncate分区(操作后,分区内的数据没有了,但是分区还在)
ALTER TABLE 表名 TRUNCATE PARTITION 分区名 update global indexes;
truncate子分区(操作后,子分区内的数据没有了,但是子分区还在)
ALTER TABLE 表名 TRUNCATE SUBPARTITION 子分区名 update global indexes;
版权声明
本文为[旺财2]所创,转载请带上原文链接,感谢
https://blog.csdn.net/wdyliuxingfeiyang/article/details/121488746
边栏推荐
- Research on alertmanager repeated / missing alarm phenomenon and two key parameters_ Wait and group_ Interpretation of interval
- oracle库恢复数据
- Winter combat camp hands-on combat - first understand the cloud foundation, hands-on practice ECS ECS ECS novice on the road to get the mouse cloud Xiaobao backpack shadowless
- 异常记录-17
- Chaos takes you to the chaos project quickly
- Redis FAQ
- 19C中ASM network未自动启动的处理
- 基於ECS搭建雲上博客(雲小寶碼上送祝福,免費抽iphone13任務詳解)
- Prometheus Thanos与Cortex组件比较
- Virtio and Vhost_ Net introduction
猜你喜欢
Problems related to Prometheus cortex using block storage
使用prom-label-proxy实现Prometheus Thanos的基于标签的多租户读
实践使用PolarDB和ECS搭建门户网站
Using Prom label proxy to implement label based multi tenant reading of Prometheus thanos
Build a cloud blog based on ECS (send blessings on the cloud Xiaobao code and draw iphone13 for free)
Introduction to DDoS attack / defense
Winter combat camp hands-on combat - first understand the cloud foundation, hands-on practice ECS ECS ECS novice on the road to get the mouse cloud Xiaobao backpack shadowless
基于ECS搭建云上博客(体验有礼)
Prometheus Cortex多租户读写的实现
Prometheus cortex Architecture Overview (horizontally scalable, highly available, multi tenant, long-term storage)
随机推荐
Virtio and Vhost_ Net introduction
Abnormal record-10
异常记录-18
Abnormal record-11
"Write multi tenant" implementation of Prometheus and thanos receiver
[fish in the net] ansible awx calls playbook to transfer parameters
EMR Based offline data analysis - polite feedback
Problems related to Prometheus cortex using block storage
一个DG环境的ORA-16047: DGID mismatch between destination setting and target database问题排查及监听VNCR特性
Abnormal record-17
oracle计算两日期相差多少秒,分钟,小时,天
Memcached source code analysis
异常记录-10
异常记录-6
异常记录-21
Thanos Compactor组件使用
微服务架构核心概念
ACFS文件系统创建扩大缩小等配置步骤
How does thanos configure different data retention durations for different tenants
try catch 不能捕获异步错误