gpt4 book ai didi

ms-access - MS Access 中的一对一关系

转载 作者:行者123 更新时间:2023-12-04 07:08:33 25 4
gpt4 key购买 nike

我在 MS Access 中的两个表之间创建一对一关系时遇到问题 - 当我创建关系时,它默认为“多对一”,我看不到更改它的选项。有没有办法做到这一点?

最佳答案

Access 没有这样的概念。您可以将两个表合并为一个,也可以在两个表上为公共(public)字段放置唯一索引。您还有其他期望的好处吗?

我想你可以在两个方向上创建 FK 关系,但我不确定它会给你带来什么,除了查询提示。

编辑:来自评论的重要更新说明 -

I don't see the problem. I opened a random DB on my computer, duplicated a table, and opened the Relationships editor. Dragged one ID field to another to create a relationship. http://i43.tinypic.com/2v30x7c.png One-to-one is an option. – Brendan Kidwell

关于ms-access - MS Access 中的一对一关系,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/732187/

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