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