SyntaxFix
Write A Post
Hire A Developer
Questions
If you also want to name the constraint, use this:
ALTER TABLE myTable ADD CONSTRAINT constraintName UNIQUE (columnName);