gpt4 book ai didi

database - 多值字段是个好主意吗?

转载 作者:太空狗 更新时间:2023-10-30 01:46:23 30 4
gpt4 key购买 nike

我最近了解到 Access 2007 的新功能,即多值字段。我的初步印象是在单个字段中使用多个值是个坏主意。传统上,如果您希望一条记录的一个字段具有多个值,您将创建另外两个表并将它们与外键链接。这允许轻松查询并确保重复值引用相同的项目。将列表保存在单元格中似乎违反了数据库的目的。

这些领域是否有好的用途,不会让我觉得脏?

最佳答案

参见:

Multivalued datatypes considered harmful: How dangerous can a data type be?

I had a long talk with Suraj Poozhiyil, the Access Program Manager... both Suraj and I agree wholeheartedly that developers do not need to use multi-valued fields. People who understand databases already have a good way of implementing many to many relationships and will gain no benefit from multi-valued fields.

So, my clear and certain advice to developers is not to use multi-valued fields. They have nothing to offer us except potential pain.

关于database - 多值字段是个好主意吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1461582/

30 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com