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

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

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

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

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

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

edited Jan 1, 1970
张彬华7688
answered Jul 18, 2024
Related Questions
doris 使用catalog外部数据hive, 在切换库时 特别阻塞时间长,应该如何排查
1 answers
doris 没隔一段时间生成的image ,不停缓慢增长,已经有7个多G了
2 answers
delete bitmap问题
1 answers
升级后 SSL connection required for plugin "mysql_clear_password". Check if 'sslMode' is enabled.
DorisBE节点global类型中Orphan占用内存高
1 answers
1.2.8升级2.0.0 报错
1 answers

Terms of service Privacy policy

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