注册

达梦支持切断分区子表与主表的关系吗

白青龙 2025/03/04 222 3

为提高效率,提问时请提供以下信息,问题描述清晰可优先响应。
【DM版本】:8.4企业版
【操作系统】:麒麟V10
【CPU】:X86
【问题描述】*:
postgres 数据库有个功能:取消分区子表继承父表的关系,如sql:

alter table ${subTableName} no inherit ${parent_table};

其中:subTableName为分区表,如person_20250304,parent_table 为主表:person。
查询子表person_20250304的时候不会关联出主表person的数据。但查询主表person的时候会同时关联出子表person_20250304的数据。

在这种情况下pg有个特性是切断子表和主表的关系,如

alter table ${subTableName} no inherit ${parent_table};

我看历史上有个类似的帖子,但没人回复:
https://eco.dameng.com/community/question/f333eae09b837586c02f53594468b0ce

问题: 请问达梦数据库有类似的功能吗?如果有,能否提供个样例sql?谢谢!

回答 0
暂无回答
扫一扫
联系客服