openGauss
开源数据库
openGauss社区官网
开源社区
创建表分区时提示ERROR: inserted partition key does not map to any table partition怎么办
2022-11-02数据库入门
创建表分区时提示 ERROR: inserted partition key does not map to any table partition 怎么办
背景介绍
在创建普通表,并插入数据后。往范围分区表插入普通表数据时遇到如下错误。
报错
解决办法
创建范围分区表时,将最后分区的边界改为 maxvalue 就可以了。