UNIQUE Constraint
Learn UNIQUE Constraint (Constraints, MySQL) with worked examples, diagrams and interview questions. Free on JavaSchoolLab.
Introduction A UNIQUE constraint forbids two rows with the same value (or same combination of values) in the columns it covers. It is implemented as a unique B-tree index. Unlike the primary key, a table may have many unique keys and the columns may hold NULL.