columnname
ALTER TABLE dbname.tablename ADD UNIQUE (columnname)
Pro tip: use ```triple backticks around text``` to write in code fences