MySQL Forums
Forum List  »  InnoDB

ADD UNIQUE field with duplicate contents
Posted by: Adrien MOGENET
Date: February 26, 2009 02:55PM

Hi everyone,

I have a large table, and I would like to alter a field

Example:
--------
ALTER TABLE `user` ADD UNIQUE ( `email` );


So, just before, I do :
-------
SET UNIQUE_CHECKS=0;



But anyway I get an error message 'duplicate entry'.
How can I do that ?

Options: ReplyQuote


Subject
Views
Written By
Posted
ADD UNIQUE field with duplicate contents
7167
February 26, 2009 02:55PM


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.