简体   繁体   中英

Composite Key in MS Access 2003

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..

尽管您不能创建2个主键,但是可以将索引设置设置为“ Yes (无重复)”,这将防止输入2个相同的条目,并且可以提供更快的搜索速度。

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM