- 错误码参考
- SQL标准错误码说明
- 第三方库错误码说明
- GAUSS-00001 -- GAUSS-00100
- GAUSS-00101 -- GAUSS-00200
- GAUSS-00201 -- GAUSS-00300
- GAUSS-00301 -- GAUSS-00400
- GAUSS-00401 -- GAUSS-00500
- GAUSS-00501 -- GAUSS-00600
- GAUSS-00601 -- GAUSS-00700
- GAUSS-00701 -- GAUSS-00800
- GAUSS-00801 -- GAUSS-00900
- GAUSS-00901 -- GAUSS-01000
- GAUSS-01001 -- GAUSS-01100
- GAUSS-01101 -- GAUSS-01200
- GAUSS-01201 -- GAUSS-01300
- GAUSS-01301 -- GAUSS-01400
- GAUSS-01401 -- GAUSS-01500
- GAUSS-01501 -- GAUSS-01600
- GAUSS-01601 -- GAUSS-01700
- GAUSS-01701 -- GAUSS-01800
- GAUSS-01801 -- GAUSS-01900
- GAUSS-01901 -- GAUSS-02000
- GAUSS-02001 -- GAUSS-02100
- GAUSS-02101 -- GAUSS-02200
- GAUSS-02201 -- GAUSS-02300
- GAUSS-02301 -- GAUSS-02400
- GAUSS-02401 -- GAUSS-02500
- GAUSS-02501 -- GAUSS-02600
- GAUSS-02601 -- GAUSS-02700
- GAUSS-02701 -- GAUSS-02800
- GAUSS-02801 -- GAUSS-02900
- GAUSS-02901 -- GAUSS-03000
- GAUSS-03001 -- GAUSS-03100
- GAUSS-03101 -- GAUSS-03200
- GAUSS-03201 -- GAUSS-03300
- GAUSS-03301 -- GAUSS-03400
- GAUSS-03401 -- GAUSS-03500
- GAUSS-03501 -- GAUSS-03600
- GAUSS-03601 -- GAUSS-03700
- GAUSS-03701 -- GAUSS-03800
- GAUSS-03801 -- GAUSS-03900
- GAUSS-03901 -- GAUSS-04000
- GAUSS-04001 -- GAUSS-04100
- GAUSS-04101 -- GAUSS-04200
- GAUSS-04201 -- GAUSS-04300
- GAUSS-04301 -- GAUSS-04400
- GAUSS-04401 -- GAUSS-04500
- GAUSS-04501 -- GAUSS-04600
- GAUSS-04601 -- GAUSS-04700
- GAUSS-04701 -- GAUSS-04800
- GAUSS-04901 -- GAUSS-04999
- GAUSS-05101 -- GAUSS-05200
- GAUSS-05801 -- GAUSS-05900
- GAUSS-05901 -- GAUSS-05999
- GAUSS-06101 -- GAUSS-06200
- GAUSS-50000 -- GAUSS-50999
- GAUSS-51000 -- GAUSS-51999
- GAUSS-52000 -- GAUSS-52999
- GAUSS-53000 -- GAUSS-53999
- 修订记录
GAUSS-00751 -- GAUSS-00760
链接复制成功!
GAUSS-00751: "cluster key for relation '%s' already exists"
SQLSTATE: 42710
错误原因:ALTER TABLE ADD CONSTRAINT操作时,关系表的cluster key已经存在,不能执行。
解决办法:新增约束已经存在,建议更改新增约束。
GAUSS-00752: "constraint must be added to child tables too"
SQLSTATE: 42P16
错误原因:为父表添加CONSTRAINT时,该约束必需指定给其子表添加。
解决办法:将该约束限制同时添加给子表。
GAUSS-00753: "referenced relation '%s' is not a table"
SQLSTATE: 42809
错误原因:为表添加外键限制时,外键约束的参考表必须是普通表。
解决办法:外键约束的参考表只能是普通表。
GAUSS-00754: "Invalid FOREIGN KEY constraints"
SQLSTATE: 42809
错误原因:分区表可以创建外键约束,但是外键约束的参考表只能为普通表,不能为分区表。
解决办法:分区表可以创建外键约束,但是外键约束的参考表不能为分区表,建议修改外键约束的参照表。
GAUSS-00755: "constraints on permanent tables may reference only permanent tables"
SQLSTATE: 42P16
错误原因:普通表的外键约束限制只能参照普通表。
解决办法:建议修改外键约束限制为普通表。
GAUSS-00756: "constraints on unlogged tables may reference only permanent or unlogged tables"
SQLSTATE: 42P16
错误原因:unlogged表的外键约束限制只能参照普通表或unlogged表。
解决办法:unlogged表的约束限制只能参照普通表或unlogged表。
GAUSS-00757: "constraints on temporary tables may reference only temporary tables"
SQLSTATE: 42P16
错误原因:临时表的外键约束限制只能参照表临时表。
解决办法:建议更改外键约束限制或者取消本操作。
GAUSS-00758: "constraints on temporary tables must involve temporary tables of this session"
SQLSTATE: 42P16
错误原因:临时表的外键约束必需参照是本地临时表。
解决办法:建议更改外键约束限制或者取消本操作。
GAUSS-00759: "number of referencing and referenced columns for foreign key disagree"
SQLSTATE: 42830
错误原因:为表添加外键约束时,被约束的字段数目需要和被引用的字段数目相同。
解决办法:建议更改外键约束操作,使被约束的字段数目与被引用的字段数目相同。
GAUSS-00760: "only b-tree indexes are supported for foreign keys"
SQLSTATE: XX000
错误原因:外键对应主键的索引不是b-tree索引。
解决办法:检查主键唯一约束索引是否是b-tree索引。
