how to make an existing column unique in mysql code example Example: mysql set field unique ALTER TABLE mytbl ADD UNIQUE (columnName);