how to add unique key constraint in mysql

Solutions on MaxInterview for how to add unique key constraint in mysql by the best coders in the world

showing results for - "how to add unique key constraint in mysql"
Jibril
05 Nov 2018
1-- Add a Unique constraint and deifine the constraint name
2ALTER TABLE TABLENAME
3ADD	CONSTRAINT UQ_tblPerson_Email UNIQUE(COLUMN_NAME)