Jump to content

Two primary keys with a foreign key?


skyace888

Recommended Posts

I am trying to implement the model I designed at [url=http://education.alcodesigns.net/projects/coursework/dbmodel9-19-06.gif]http://education.alcodesigns.net/projects/coursework/dbmodel9-19-06.gif[/url] using PHPMyAdmin.  I am having trouble getting the "PLAYERS" table right.  I need to have two primary keys and "TeamNumber" needs to be a foreign key that references TEAM -> Number.  Can this be done?  If so, how?

Thanks,
Al
Link to comment
https://forums.phpfreaks.com/topic/21315-two-primary-keys-with-a-foreign-key/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.