MySQL Forums
Forum List  »  Newbie

Unique Non-Key field
Posted by: Jamie Cantrell
Date: December 22, 2005 10:50AM

I have a non-key field in a table that I need to enforce unique values in. Adding this field as part of the primary key field will not necessarily force unique values due to the fact the existing primary key field contains unique values.

For example:
1,a
2,a
3,a

Each would be considered unique primary keys, but I need to force unique values in the second column as well as the first. Please help

Options: ReplyQuote


Subject
Written By
Posted
Unique Non-Key field
December 22, 2005 10:50AM
December 22, 2005 10:56AM
December 22, 2005 11:10AM
December 22, 2005 11:13AM
January 03, 2006 08:06AM
January 03, 2006 08:53AM
January 03, 2006 09:29AM
January 03, 2006 10:06AM
January 03, 2006 10:20AM
January 03, 2006 10:23AM
January 03, 2006 10:51AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.