MS Access 中的一对一关系
我在 MS Access 中的两个表之间创建一对一关系时遇到问题 - 当我创建关系时,它默认为“多对一”,并且我没有看到更改它的选项。 有没有办法做到这一点?
I'm having trouble in creating a one-to-one relationship between two tables in MS Access - when I create the relationship, it defaults to "Many-to-one", and I don't see an option to change it. Is there a way to do this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
Access没有这样的概念。 您可以将两个表合并为一个表,也可以在两个表上为公共字段放置唯一索引。 您还期望其他好处吗?
你可以假设在两个方向上创建 FK 关系,但我不确定除了查询提示之外它会给你带来什么。
EDIT: Important update note from comment -
Access has no such concept. You can either conflate the two tables into one, or place unique indexes on both tables for the common field(s). Are there other benefits you would expect?
You could I suppose create FK relationships in both directions, but I'm not sure what it would gain you except maybe query hints.
EDIT: Important update note from comment -