Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Primary Keys and Indexes

Status
Not open for further replies.

pcdaveh

Technical User
Sep 26, 2000
213
US
Maybe I don't understand this as well as I thought I did.
I have a table that has two primary keys. The primary key was defined by selecting the Key icon on the tool bar. One primary key is an autonumber field the other is not. Both are indexed and set to no duplicates... Now... I go to the tool bar and click on the Index icon and look at the indexes listed in that dialog box and both of my primary keys say Primary No and Unique Yes. What's up? Shouldn't they be the same in both places. The reason this is bothering me is that I was using the database documentor and I was trying to get a report that would show me all the primary keys in the database and they didn't indicate a primary key on some field that are set as primary. Whasssssup?
 
You can only have one primary key per table, but you can define many single or multi-field indexes.....
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top