MS Access 2003 中的复合键

发布于 2024-12-01 06:07:16 字数 127 浏览 1 评论 0原文

问题一: 以及如何创建两个字段作为主键(属性A为主键 并且属性 B 是主键)

问题 2: 如何

在 MS Access 2003 中

创建复合键(属性 A 和 B 一起作为主键)。提前致谢..

Question 1:
And how to create two fields as primary keys(Attribute A is primary key
and Attribute B is primary key)

Question 2:
How to create composite key(Attribute A and B together as primary key)

In MS Access 2003.

Thanks in Advance..

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

梦幻的味道 2024-12-08 06:07:16

虽然您无法创建 2 个主键,但您可以将索引设置设置为 Yes(无重复),这将防止输入 2 个相同的条目,并提供更快的搜索速度。

Although you can't create 2 primary keys, you can set the indexed setting to Yes (No Duplicates), this will prevent 2 entries the same being entered and also provide faster searching.

痴梦一场 2024-12-08 06:07:16

您可以选择这两个字段,按住 Shift 键,然后右键单击并选择主键。这将使两个键成为主键。这意味着组合必须始终是唯一的,我想这应该回答这两个问题。

You can select both fields, hold the shift key and then right click and choice primary key. This will make both keys primary key. Meaning the combination must always be unique, and I guess this should answer both questions.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文