create table column unique code example
Example 1: how to add unique constraint in mysql table
ALTER TABLE mytbl ADD UNIQUE (columnName);
Example 2: set column as unique in sql server
ALTER TABLE Persons
ADD UNIQUE (ID);
ALTER TABLE mytbl ADD UNIQUE (columnName);
ALTER TABLE Persons
ADD UNIQUE (ID);