MySQL Forums
Forum List  »  Newbie

Re: Should PRIMARY KEY column be marked as UNIQUE?
Posted by: Peter Brawley
Date: December 03, 2014 10:35AM

> is marking the column as UNIQUE good practice?

No, for the reason you discovered. A PK is by definition unique, so declaring a PK unique is entirely redundant.

Options: ReplyQuote


Subject
Written By
Posted
Re: Should PRIMARY KEY column be marked as UNIQUE?
December 03, 2014 10:35AM


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.