mysql - Making a sql column UNIQUE -


this question has answer here:

is there anyway make column in mysql unique out removing , adding again ? know how add need remove first want edit current column , make unique

i

alter table users add unique (username) 

but tells me column username ready there . when want edit , not add it...

  1. could unique index there?
  2. could there duplicates in column?

check mysql - make field unique might fix problem.


Comments

Popular posts from this blog

matlab - Deleting rows with specific rules -

php - MySQLi multi_query results for later use -