Apache Doris 中文技术论坛
Questions Tags Users Badges

为什么 selectdb 的 key 列可以为空,这种设计是基于什么考虑做的呢?

Asked Jul 15, 2024 Modified Jan 1, 0001
Viewed 50
2.0

如题,在 unique 模型中发现 key 列可以为空,实际测试也能写入为空的数据,请问一下为什么要这么设计。

edited Jan 1, 0001
hanhe5
asked Jul 15, 2024
1 Answers

如果非空,可以在定义字段时加not null;有些业务场景是需要允许null的。

edited Jan 1, 1970
张彬华7698
answered Jul 18, 2024
Related Questions
Doris的json解析问题
1 answers
datax同步数据到doris,任务间断性失败。
1 answers
Doris数据库建表超时
1 answers
fe节点空指针,两个be节点只有一个存活
1 answers
doris单表分区数量限制
1 answers
求助:be频繁重启,目前推测由于arm内存管理,能否分析帮忙具体报错和提供解决措施?
1 answers

Terms of service Privacy policy

Powered by Answer - the open-source software that powers Q&A communities.
Made with love © 2026 Apache Doris 中文技术论坛.