mysql set field unique
snippet in sql

mysql set field unique

user7593

ALTER TABLE mytbl ADD UNIQUE (columnName);