Questions
Tags
Users
为什么 selectdb 的 key 列可以为空,这种设计是基于什么考虑做的呢?
Asked Jul 15, 2024
Modified Jan 1, 0001
Viewed 39
2.0
如题,在 unique 模型中发现 key 列可以为空,实际测试也能写入为空的数据,请问一下为什么要这么设计。
0
0
edited Jan 1, 0001
hanhe
5
asked Jul 15, 2024
1 Answers
如果非空,可以在定义字段时加not null;有些业务场景是需要允许null的。
0
Accepted
edited Jan 1, 1970
张彬华
7563
answered Jul 18, 2024