GBase 8a
其他
问答
GBase8a 主键列个数限制怎么配置?唯一约束怎么建立
发表于2024-01-14 20:35:56680次浏览3个评论
为提高效率,提问时请提供以下信息,问题描述清晰可优先响应。
【GBase版本】: GBase8a_MPP_Cluster-License-9.5.3.14
【操作系统】: CentOS 7
【CPU】:
【问题描述】*:
1、因为客户临时决定使用GBase,需要把Oracle的数据迁移过来,但是建表时候,表的主键Column个数限制在3个,报错如下:
SQL 错误 [ErrorCode : 1702] [SQLState : HY000] : gcluster table error: Too many key parts specified; max 3 parts allowed.
2、后来尝试不创建主键,创建唯一索引,报错如下:
SQL 错误 [ErrorCode : 1289] [SQLState : HY000] : The 'Unique keys' feature is disabled; you need GBase built with 'HAVE_UNIQUE' to have it working
我是第一次使用GBase数据,参数设置方面真是不懂,度娘也搜不到,用户手册也没找到,哪位大神给讲解讲解,谢谢
评论
登录后才可以发表评论

GBase社区管理员发表于 2年前
最佳回答
GBase用户28017发表于 7个月前
@社区管理员:优秀。
GBase用户21014发表于 10个月前
不能创建多列复合索引吗?
CREATE INDEX user_host_user_idx ON testdb."user" ("Host", "User");
SQL 错误 [1702] [HY000]: gcluster table error: (GBA-01EX-0010) Hash index error:hash index 'user_host_user_idx' only can be set on one column. .
CREATE INDEX user_host_user_idx ON testdb."user" ("Host", "User");
SQL 错误 [1702] [HY000]: gcluster table error: (GBA-01EX-0010) Hash index error:hash index 'user_host_user_idx' only can be set on one column. .
热门帖子
- 12025-12-01浏览数:182762
- 22023-05-09浏览数:25056
- 42023-09-25浏览数:18525
- 52020-05-11浏览数:17528
您好,GBase 8a暂不支持多于3个的主键以及唯一索引