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

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

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

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

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

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

edited Jan 1, 1970
张彬华7678
answered Jul 18, 2024
Related Questions
Doris2.0.3版本ROUND函数四舍五入偶发性错误
1 answers
内存报错后宕机
1 answers
Doris2.0物化视图使用疑问
1 answers
doris创建oralce的catalog查询表执行正常,查询oracle的同义词,查询的时候 提示表不存在
1 answers
doris写入数据失败
1 answers
元数据文件恢复
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 中文技术论坛.