Re: duplicate values for primary keys
Posted by: Rick James
Date: July 12, 2010 11:49PM

primary key (username, email_addr)
-->
primary key (username),
unique (email_addr)

The first says that the _combination_ is never to be repeated. The other says that _each_ must never be repeated.

Note: PRIMARY KEY implies UNIQUE.

Options: ReplyQuote


Subject
Written By
Posted
Re: duplicate values for primary keys
July 12, 2010 11:49PM


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.